English
Telegram — message received
Starts the workflow on every message your bot receives (private chat, group or channel). The message lands in data.telegram, with no triggering email.
The Telegram — message received trigger asks Telegram at regular intervals for the messages your bot received (private chats, groups, channels) and starts one run per message. It starts from publication and never triggers twice for the same message.
Telegram keeps a single queue per bot: use one trigger per bot, and do not set an outgoing webhook on it (Telegram then refuses to hand over the queue). Messages wait at most 24 hours at Telegram.
At a glance
- Type:
trigger.telegram· version 1 - Category: Triggers
- Kind: Trigger — starts a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: Telegram
- Outputs:
main
Connection
This node needs a Telegram connection.
Parameters
connection
Telegram connection — The Telegram connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
chatId
Only this chat — Optional: a chat id. Empty: every message the bot receives.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 64 characters at most
- Expressions:
{{ }}not accepted
everyMinutes
Check every (minutes)
- Type: Number (
number) - Required: No
- Default:
5 - Whole number, from 5 to 1440
Outputs
main— Taken by each run, one per message received by the bot since the previous check.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.telegram.text }}—string. The message text (or the caption of a file).{{ data.telegram.chatId }}—string. The chat it was sent in, to answer with the Telegram node.{{ data.telegram.messageId }}—string. The message id, to reply to it.{{ data.telegram.fromName }}—string. The sender’s name.{{ data.telegram.document.fileId }}—string. The id of an attached document, to fetch it with the Telegram node (null when there is none).{{ data.telegram.date }}—string. When the message was sent (ISO 8601, UTC).