telegram

Send and edit Telegram messages via the Bot API.

1.6k|153|Updated Jul 13, 2025
One-click install
npx skills add https://github.com/bubbuild/bub --skill telegram-bubbuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram
Source: https://github.com/bubbuild/bub/tree/main/src/bub/skills/telegram
Command: npx skills add https://github.com/bubbuild/bub --skill telegram-bubbuild

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests>=2.31.0, telegramify-markdown>=0.5.0, and includes scripts (resource) components.

What problem does it solve?

Telegram bot integration that simplifies sending and editing messages via Telegram Bot API, enabling automated notifications and replies in Bub workflows.

Core Features & Use Cases

  • Send messages to Telegram chats or channels
  • Edit existing messages by message_id with Markdown formatting
  • Reply to specific messages with reply_to_message_id
  • Proactive notifications when not in an active Telegram session
  • Use case: notify a team channel about task updates or handoffs

Quick Start

Configure the BUB_TELEGRAM_TOKEN environment variable or pass --token, then run Bub to start sending and editing Telegram messages via the Bot API.

Frequently Asked Questions about telegram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate sending Telegram messages via the Bot API?

Automate sending Telegram messages by configuring a bot token and using scripts that call the Telegram Bot API to deliver direct messages or replies to specific chats. The automation supports MarkdownV2 formatting through the telegramify-markdown library for proper text rendering.

Can I edit existing Telegram bot messages by message_id?

Edit existing Telegram bot messages by referencing the specific message_id in your Bot API request. The Skill provides dedicated scripts for message editing, allowing you to update previously sent content with MarkdownV2 formatting applied via telegramify-markdown.

Do I need a specific environment setup to send Telegram notifications?

Sending Telegram notifications requires setting the BUB_TELEGRAM_TOKEN environment variable or passing a token via the --token argument. You also need the requests and telegramify-markdown Python dependencies installed to handle API calls and MarkdownV2 text formatting.

What's the best way to format MarkdownV2 text for Telegram bot messages?

Format MarkdownV2 text for Telegram bot messages by utilizing the telegramify-markdown dependency, which automatically converts standard Markdown into Telegram's strict MarkdownV2 syntax. This ensures special characters are properly escaped before sending or editing messages via the Bot API.

How do Telegram bots send proactive updates outside active sessions?

Send proactive updates outside active Telegram sessions by triggering the Bot API send scripts within your automated workflows. The bot token authenticates the request, allowing messages to be pushed to chats or channels independently of user interaction.

Why use a dedicated script for Telegram message replies instead of direct API calls?

Using dedicated scripts for Telegram message replies handles Bot API complexities like reply_to_message_id targeting and MarkdownV2 formatting automatically. This abstracts raw API request formatting, ensuring reliable message delivery and editing within automated notification pipelines.