Agent skill

Add Telegram API Tests

by vendelieu in vendelieu/telegram-bot

Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot.

Apache-2.0Auto-check: notesProductivity & Automation

Install Add Telegram API Tests

skills CLI
$ npx skills add vendelieu/telegram-bot --skill add-telegram-api-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vendelieu/telegram-bot add-telegram-api-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vendelieu/telegram-bot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/add-telegram-api-tests .claude/skills/add-telegram-api-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-telegram-api-tests
GitHub stars
249
Token cost
~609 tokens
SKILL.md length
175 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot.

  • Works in 6 steps: Test Class Setup → API Call Helpers → Assertions → …
  • Adding tests for an API action
  • SKILL.md covers Workflow and Reference Examples
  • Needs BOT_TOKEN

What it does

Add Telegram API Tests is an agent skill from vendelieu/telegram-bot. Writes tests for Telegram Bot API actions. Use when adding tests for an API action, testing a new Telegram method, or when the user asks to add tests for the telegram-bot library.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Chatbots and conversational support, API testing and Android development. It works with Telegram and Kotlin. The repository describes itself as: Telegram Bot API wrapper with handy Kotlin DSL. The licence is Apache-2.0.

When your agent uses it

  • Adding tests for an API action
  • Testing a new Telegram method
  • The user asks to add tests for the telegram-bot library

Example prompts

  • “Use the add-telegram-api-tests skill to write tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot”
  • “/add-telegram-api-tests”

Requirements

  • A credential in BOT_TOKEN

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Test Class Setup
  2. API Call Helpers
  3. Assertions
  4. Rate Limits (429)
  5. Test Placement
  6. Environment

What it can do on your machine

Read from SKILL.md and the folder at commit 1dbfd00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • BOT_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Telegram API Tests loads about 609 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 175 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~609

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:57
    Tests load from `.env` or system env. Required for most tests:

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vendelieu/telegram-bot at commit 1dbfd00, republished under its Apache-2.0 licence (© vendelieu). 175 words, ~609 tokens.

Download SKILL.mdSave it as .claude/skills/add-telegram-api-tests/SKILL.md (or your agent's skills folder).
name
add-telegram-api-tests
description
Writes tests for Telegram Bot API actions. Use when adding tests for an API action, testing a new Telegram method, or when the user asks to add tests for the telegram-bot library.

Add Telegram API Tests

Workflow

1. Test Class Setup
  • Extend BotTestContext (provides bot, TG_ID, CHAT_ID, CHANNEL_ID)
  • Use Kotest AnnotationSpec with @Test suspend fun
  • Test names: backtick string e.g. `method name method test`
kotlin
class MyApiTest : BotTestContext() {
    @Test
    suspend fun `my method test`() {
        // ...
    }
}
2. API Call Helpers
  • Action (chat-based): action.sendReq(to = TG_ID, via = bot) or action.sendReq(CHAT_ID)
  • SimpleAction: action.sendReq(via = bot) or action.sendReq()
  • MediaAction: same as Action
  • Defaults: sendReq() uses TG_ID and bot when omitted
3. Assertions
  • Success: .shouldSuccess() - asserts ok, isSuccess, getOrNull not null
  • Optional result: .getOrNull() when success not guaranteed
  • Failure: .shouldFailure() - returns Response.Failure
  • Error text: response.shouldFailure() shouldContainInDescription "ERROR_TEXT"
4. Rate Limits (429)

For methods that may hit rate limits (e.g. setMyName):

kotlin
val result = setMyName("test").sendReq()
result.onFailure { if (it.errorCode == 429) return }
result.shouldSuccess()
5. Test Placement
  • Path: telegram-bot/src/jvmTest/kotlin/eu/vendeli/api/
  • Mirror API package: botactions/, media/, message/, chat/, etc.
  • Add to existing test class if one exists for that API area
6. Environment

Tests load from .env or system env. Required for most tests:

  • TELEGRAM_ID - your Telegram user ID
  • BOT_TOKEN - bot token from BotFather

Optional:

  • CHAT_ID - for chat/group tests
  • CHANNEL_ID - for channel tests
  • BOT_TOKEN_2 - rate-limit testing

Reference Examples

© vendelieu, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/add-telegram-api-tests of vendelieu/telegram-bot.

Open the folder on GitHubat commit 1dbfd00

Compare with similar skills

Add Telegram API Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Telegram API Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Telegram API Tests this skillvendelieu/telegram-bot249—~609Automated safety check: NotesApache-2.0
Whatsapp Telegramericrisco/rsc-harness167—~2.9kAutomated safety check: PassMIT
Pytdbotpytdbot/client137—~4.3kAutomated safety check: PassMIT
Setupterranc/claude-telegram-bot-bridge134—~1.5kAutomated safety check: NotesNone
Telegrambubbuild/bub1.7k—~2.2kAutomated safety check: PassApache-2.0
MuseKevPH2026/muse-catch128—~1.6kAutomated safety check: NotesAGPL-3.0

Similar skills

  • Whatsapp Telegram

    ericrisco/rsc-harness

    A skill your agent uses when wiring an app or agent to message customers over the WhatsApp Cloud API or a Telegram bot — order updates, OTP codes, reminders, alerts and broadcasts — or when…

    167 GitHub stars~2.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Pytdbot

    pytdbot/client

    Write Telegram bots and userbots with Pytdbot (async TDLib wrapper with high-level helpers; not the Telegram Bot API).

    137 GitHub stars~4.3k tokensUpdated 10 days ago
    Productivity & AutomationAuto-check passed
  • Setup

    terranc/claude-telegram-bot-bridge

    Install and configure the Telegram Skill Bot. An agent skill from terranc/claude-telegram-bot-bridge.

    134 GitHub stars~1.5k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check: notes
  • Telegram

    bubbuild/bub

    Telegram Bot skill for sending and editing Telegram messages via Bot API.

    1.7k GitHub stars~2.2k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Muse

    KevPH2026/muse-catch

    Muse · Catch — AI 灵感捕手。浏览器插件 + 任意 Agent(Telegram/WhatsApp/Discord…)一键捕获灵感,AI自动提炼,Web Dashboard浏览。分级LLM路由:Agent内置LLM隐私分析 + TokenRouter云端分布式调用。当用户说「灵感」「捕获」「Muse」「Catch」「记下来」「收藏」「稍后读」时自动触发。

    128 GitHub stars~1.6k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check: notes
  • Muse

    KevPH2026/muse-catch

    Muse · Catch — AI灵感捕手。浏览器插件+Telegram Bot一键捕获,AI自动提炼,Dashboard浏览+DNA雷达+OPC Market。当用户说「灵感」「捕获」「Muse」「Catch」「记下来」「收藏」时触发。

    128 GitHub stars~865 tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from vendelieu/telegram-bot

All 14 skills in this repo
  • Add Ktnip Ksp Tests

    vendelieu/telegram-bot

    Adds tests for the ktnip KSP processor. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~726 tokensUpdated 3 days ago
    Auto-check passed
  • Add Ktnip Parameter Strategy

    vendelieu/telegram-bot

    Adds a new parameter resolution strategy to the ktnip KSP processor.

    249 GitHub stars~613 tokensUpdated 3 days ago
    Auto-check passed
  • Add Telegram API Action

    vendelieu/telegram-bot

    Adds a new Telegram Bot API method (action class and top-level functions).

    249 GitHub stars~974 tokensUpdated 3 days ago
    Auto-check passed
  • Add Telegram Update Field

    vendelieu/telegram-bot

    Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils.

    249 GitHub stars~841 tokensUpdated 3 days ago
    Auto-check passed
  • Add Wizard Handler

    vendelieu/telegram-bot

    Configures @WizardHandler annotation for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~508 tokensUpdated 3 days ago
    Auto-check passed
  • Add Wizard Step

    vendelieu/telegram-bot

    Implements WizardStep for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~634 tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Add Telegram API Tests

What does Add Telegram API Tests do?

Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot. Add Telegram API Tests is an agent skill from vendelieu/telegram-bot. Writes tests for Telegram Bot API actions.

When should I use Add Telegram API Tests?

Add Telegram API Tests fits situations like: adding tests for an API action; testing a new Telegram method; the user asks to add tests for the telegram-bot library.

How do I install Add Telegram API Tests in Claude Code?

Run `npx skills add vendelieu/telegram-bot --skill add-telegram-api-tests -a claude-code`. Or copy the skill folder (.cursor/skills/add-telegram-api-tests in vendelieu/telegram-bot) into .claude/skills/add-telegram-api-tests in your project. Claude Code loads it when a task matches its description.

How do I install Add Telegram API Tests in Codex?

Run `npx skills add vendelieu/telegram-bot --skill add-telegram-api-tests -a codex`. Or copy the skill folder (.cursor/skills/add-telegram-api-tests in vendelieu/telegram-bot) into .agents/skills/add-telegram-api-tests in your project. Codex loads it when a task matches its description.

Can I use Add Telegram API Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vendelieu/telegram-bot --skill add-telegram-api-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-telegram-api-tests, .gemini/skills/add-telegram-api-tests, .github/skills/add-telegram-api-tests and .opencode/skills/add-telegram-api-tests in your project.

What does Add Telegram API Tests need to run?

Going by SKILL.md and its folder, Add Telegram API Tests needs credentials named BOT_TOKEN. Our summary lists: A credential in BOT_TOKEN.

Does Add Telegram API Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Telegram API Tests safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Add Telegram API Tests use?

Add Telegram API Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Telegram API Tests use?

About 609 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Telegram API Tests?

Skills that share tags, products or a category with Add Telegram API Tests: Whatsapp Telegram (ericrisco/rsc-harness, 167 stars), Pytdbot (pytdbot/client, 137 stars), Setup (terranc/claude-telegram-bot-bridge, 134 stars) and Telegram (bubbuild/bub, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Telegram API Tests?

vendelieu (a GitHub user) maintains it in vendelieu/telegram-bot, which has 249 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 4, 2026.

Source: vendelieu/telegram-bot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.