Telegram
Send messages, photos, and read bot updates via the Telegram Bot API. No external SDK required — uses pure HTTP viafetch.
Quick Start
Config
Telegram Bot token from @BotFather. Falls back to
TELEGRAM_BOT_TOKEN env var.Tools
| Tool | Description |
|---|---|
telegram_send_message | Send a text message to a chat (supports Markdown/HTML). |
telegram_send_photo | Send a photo (by URL or file_id) to a chat. |
telegram_get_updates | Get recent messages/updates received by the bot. |
No External Dependencies
This toolkit uses the Telegram Bot API directly viafetch — no SDK needed.
Getting a Bot Token
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy the token and set it as
TELEGRAM_BOT_TOKEN
Environment Variables
| Variable | Description |
|---|---|
TELEGRAM_BOT_TOKEN | Bot token from @BotFather |