English
Telegram
Your Telegram bot posts an alert, a summary or an email’s attachments to a chat, and starts a workflow on every message it receives.
A Telegram connection lets the Telegram node write through your bot — a message, the email’s attachments, a received file fetched into the run — and the Telegram — message received trigger start a workflow on each message the bot receives.
The connection holds the bot token, encrypted at rest. Telegram puts the token in the path of each call’s URL; the server inserts it at call time, never logs the full URL, and masks the token in any error.
At a glance
- Identifier:
telegram - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: API key or token
- Credential type:
service:telegram - Official API documentation: https://core.telegram.org/bots/api
- API base URL:
https://api.telegram.org - Rate limit applied by Loop & Roll: 1 requests per second and per connection; up to 3 attempts on a 429 or a 5xx
- Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- In Telegram, open a chat with @BotFather, send /newbot and follow the steps: it gives you the bot’s token.
- Add the bot to the group or channel where it must post (as an administrator for a channel), or message it once in private.
- Paste the token below.
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
Bot token (botToken) | Secret — never shown again | Yes | Shaped like 123456789:AAE… (given by @BotFather). |
Before you start
- Create the bot with @BotFather (
/newbot); it gives you the token. - Add the bot to the group or channel where it must post (as an administrator for a channel), or message it once in private.
- The trigger reads the bot’s queue: one trigger per bot, and no outgoing webhook set on the bot.
Add the connection
- Open Connections. In the Third-party services section, find the Telegram card and click Connect.
- Paste the bot token, then click Create connection.
- Click Configure, then Test connection: the test calls
getMeand shows the bot’s name.
Calls used
| Action | Telegram call |
|---|---|
| Send a message | sendMessage |
| Send attachments | sendDocument (multipart), one per file |
| Fetch a received file | getFile, then the file download host |
| Message received (trigger) | getUpdates with the stored offset |
Nodes that use this connection
- Telegram — message received —
trigger.telegram - Telegram —
telegram.api