Telegram Bot API
Set up a Telegram bot and get an API token for sending messages, managing groups, and building bot interactions.
getapi telegram
Prerequisites
- A Telegram account
Credentials
| Variable | Description | Sensitive |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Bot token for authenticating requests to the Telegram Bot API | Secret |
Setup Steps
- 1 Info
- 2 Open URL
- 3 Choice
- 4 Info
- 5 Confirm
- 6 Info
- 7 Input
- 8 Validate
Things to Know
- Bot tokens don't expire, but can be revoked by sending /revoke to BotFather.
- Bots can't message users first. A user must send /start to your bot before it can reply to them.
- Bot usernames must end in 'bot' (e.g. 'my_cool_bot' or 'MyCoolBot').
- The API rate limit is roughly 30 messages per second globally and 1 message per second per individual chat.
- For webhooks, you need a publicly accessible HTTPS URL. Self-signed certificates are supported.