All integrations
Get an API key
Telegram
Send and receive messages through a Telegram bot.
Communication
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
- Message @BotFather on Telegram and run /newbot.
- Copy the token it gives you.
- Telegram carries the token in the URL PATH, so calls look like https://api.telegram.org/bot${credential:NAME}/sendMessage.
Connection details
- Base URL
- https://api.telegram.org/bot{token}
- Pagination
- offset
Common endpoints
| verify the token | GET /getMe |
| send a message | POST /sendMessage |
| poll updates | GET /getUpdates?offset={last+1} |
Worth knowing
- The token lives in the URL path, so the URL is secret-bearing and is never logged.
- A bot cannot start a conversation. The user must message it first, or it must be in the group.
- Every response is wrapped in {ok, result}.