Tooluck logoTooluck
SKILL.md

telegram

Agent skill frombubbuild/bub

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.

How to install telegram

install telegram
# install the bub pack with the skills CLI
npx skills add bubbuild/bub

# or add only this skill to Claude Code: copy the folder

src/skills/telegram/

# into

~/.claude/skills/telegram/ (all projects)

.claude/skills/telegram/ (one project)

src/skills/telegram/SKILL.md

Apache-2.0Full file
1# Telegram Skill
2
3Agent-facing execution guide for Telegram outbound communication.
4
5Env vars:
6
7- `BUB_TELEGRAM_TOKEN=${config.telegram.token}`
8
9## Required Inputs
10Collect these before execution:
11
12- `chat_id` (required)
13- `message_id` (required for edit or reply)
14- message content (required for send/edit)
15- `reply_to_message_id` (required when you need a threaded reply)
16
17## Rich Messages (Bot API 10.1+, June 2026) — **PREFERRED**
18
19For any message that benefits from structured formatting — headings, bullet/numbered lists, tables, blockquotes, collapsible `<details>`, 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.
20
21The 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 `<b>`, `<i>`, `<u>`, `<s>`, `<tg-spoiler>`, `<code>`, `<pre>`, `<mark>`, `<sub>`, `<sup>`, `<h1>`-`<h6>`, `<p>`, `<ul>`/`<ol>`/`<li>`, `<blockquote>`, `<aside>`, `<details>`/`<summary>`, `<table>`, `<figure>`/`<figcaption>`, `<img>`/`<video>`/`<audio>`, `<tg-collage>`, `<tg-slideshow>`, `<tg-map>`, `<tg-math>`, `<tg-math-block>`, `<tg-reference>`, `<tg-emoji>`, `<tg-time>`. Full reference: https://core.telegram.org/bots/api#rich-html-style
22
23```bash
24…

Excerpt shown under the repository's Apache-2.0 license.

More skills in bub

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates