xiongjingzhi/agent-learn/telegram
Claude Code and agent skill by xiongjingzhi/agent-learn
- community
Checking that the SKILL.md file is still in the repository.
Telegram Bot skill for sending and editing Telegram messages via Bot API. Use when Bub needs to: (1) Send a message to a Telegram user/group/channel, (2) Reply to a specific Telegram message with reply_to_message_id, (3) Edit an existing Telegram message, or (4) Push proactive Telegram notifications when working outside an active Telegram session.
Install
npx vskill@latest install xiongjingzhi/agent-learn/telegramSKILL.md
Telegram Skill
Agent-facing execution guide for Telegram outbound communication.
Assumption: BUB_TELEGRAM_TOKEN is already available.
Required Inputs
Collect these before execution:
chat_id(required)- message content (required for send/edit)
reply_to_message_id(required for threaded reply behavior)message_id(required for edit)
Execution Policy
- If handling a direct user message in Telegram and
message_idis known, prefer reply mode (--reply-to). - If source metadata says sender is a bot (
sender_is_bot=true), do not use reply mode. - In the bot-source case, send a normal message and prefix content with
@<sender_username>(or the provided source username). - For long-running tasks, optionally send one progress message, then edit that same message for final status.
- Keep content concise and action-oriented.
- Use literal newlines in message text when line breaks are needed.
Active Response Policy
When this skill is in scope, prefer proactive and timely Telegram updates:
- Send an immediate acknowledgment for newly assigned tasks
- Send progress updates for long-running operations using message edits
- Send completion notifications when work finishes
- Send important status or failure notifications without waiting for follow-up prompts
- If execution is blocked or fails, send a problem report immediately with cause, impact, and next action
Recommended pattern:
- Send a short acknowledgment reply
- Continue processing
- If blocked, edit or send an issue update immediately
- Edit the acknowledgment message with final result when possible
Voice Message Policy
When the inbound Telegram message is voice:
- Transcribe the voice input first (use STT skill if available)
- Prepare response content based on transcription
- Prefer voice response output (use TTS skill if available)
- If voice output is unavailable, send a concise text fallback and state limitation
Reaction Policy
When an inbound Telegram message evokes a strong emotional response:
- Send the normal reply first (or in the same handling flow)
- Optionally add a Telegram reaction as an emotional signal
- Do not use reaction as a replacement for the actual reply
Command Templates
Paths are relative to this skill directory.
For other actions that not covered by these scripts, use curl to call Telegram Bot API directly with the provided token.
Script Interface Reference
telegram_send.py
--chat-id,-c: required, supports comma-separated ids--message,-m: required--reply-to,-r: optional--token,-t: optional (normally not needed)--source-is-bot: optional flag, disables reply mode and switches to@user_idstyle--source-user-id: optional, required when--source-is-botis set
telegram_edit.py
--chat-id,-c: required--message-id,-m: required--text,-t: required--token: optional (normally not needed)
Failure Handling
- On HTTP errors, inspect API response text and adjust identifiers/permissions.
- If edit fails because message is not editable, fall back to a new send.
- If reply target is invalid, resend without
--reply-toonly when context threading is non-critical. - For task-level failures (not only API failures), notify the Telegram user with:
- what failed
- what was already completed
- what will happen next (retry/manual action/escalation)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapp/bub/src/bub/skills/telegram/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xiongjingzhi/agent-learn/telegram)