Telegram Bot API
APIHTTP API for building bots that send and receive Telegram messages
- Price
- Free, paid broadcasts above 30/sec
- Access
- Bot token
About
Telegram's official HTTP interface for bots, which you create and manage through @BotFather. Bots message users at no cost up to about 30 messages per second; faster broadcasts cost Telegram Stars. An open-source local server raises the upload limit to 2,000 MB.
What you can do with it
- Send alerts and messages to a Telegram chat, group or channel
- Build a chatbot that replies to commands and inline buttons
- Receive user messages through webhooks or long polling
Get started
- Create a bot with @BotFather and copy its token
- Message your bot, then read your chat ID from getUpdates
Example
curl "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
-d chat_id=$TELEGRAM_CHAT_ID \
-d text="Hello from my bot"Details
- Hosting
- Hosted service, Self-hosted
- Available in
- Worldwide
- MCP server
- None
- Works with
- Telegram