--- name: telegram description: | 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. Prefer rich formatted messages (headings, lists, tables, blockquotes, math, collapsible details, captioned media) over plain markdown whenever the content is more than one short paragraph. metadata: channel: telegram --- # Telegram Skill Agent-facing execution guide for Telegram outbound communication. Env vars: - `BUB_TELEGRAM_TOKEN=${config.telegram.token}` ## Required Inputs Collect these before execution: - `chat_id` (required) - `message_id` (required for edit or reply) - message content (required for send/edit) - `reply_to_message_id` (required when you need a threaded reply) ## Rich Messages (Bot API 10.1+, June 2026) — **PREFERRED** For any message that benefits from structured formatting — headings, bullet/numbered lists, tables, blockquotes, collapsible `
`, captioned media, math blocks, code blocks with language hints, or mixed media — use the dedicated `telegram_rich.py` script with `rich-html-style` markup. This is the **first-choice** path; fall back to plain markdown (`telegram_send.py`) only for short single-paragraph replies. The Rich Message API uses `sendRichMessage` and `editMessageText` with a `rich_message` payload. Exactly one of `html` or `markdown` must be supplied. Supported HTML tags include ``, ``, ``, ``, ``, ``, `
`, ``, ``, ``, `

`-`

`, `

`, `

    `/`
      `/`
    1. `, `
      `, `