Telegram
The Telegram node sends a message to a Telegram chat through the Telegram Bot API. Use it to deliver notifications or an agent’s reply to a user or group. You find it on the node picker’s Channels — send a reply shelf.
It has two handles: input, which takes the upstream node’s output (available in every field as $prev), and output, which passes the send result to the next node.
Store the bot token as a secret or as a saved connection to Telegram and select it in credential. An expression that resolves to the token itself still works, but a stored credential keeps it out of the flow definition.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Chat (chatId) | string ✦ (required) | — | The Telegram chat id (user, group, or channel) to send the message to. |
Text (text) | string ✦ (required) | — | The text of the message to send. |
Parse mode (parseMode) | string ✦ (optional) | — | Telegram parse mode for formatting, e.g. MarkdownV2 or HTML. |
Credential (credential) | string ✦ (optional) | — | The Telegram bot token used to authenticate the send — a Secret or a saved Connection. |
Attachments (attachments) | string ✦ (optional) | — | Files to send after the text — a voice reply a Text to Speech node made, a photo, a document. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Attachments picks stored files. Type part of a path, and the field lists the
matching files of every file store in your workspace as Store › path, the
newest first, 50 at most. One picked file is saved as its object id, several as
a JSON array, and a list typed in before the field became a picker opens as its
files. For a file another node produced, such as a spoken reply, click Insert
a value ({x}) and write an expression, for example
{!! $prev->object->versionId !!}. Audio goes as a voice message, an image as a
photo, and anything else as a document.
Output
Section titled “Output”On a successful send (Telegram answers with status 200) the node emits:
{ "status": "sent", "channel": "telegram" }Any other response status, or an empty bot token, fails the node without retrying.
Get a bot token
Section titled “Get a bot token”In Telegram, message @BotFather, send /newbot, and follow the prompts. Copy the token (form digits:letters) and save it as a secret in Publicus.
Example
Section titled “Example”The Telegram support agent template wires the full loop: a Telegram webhook trigger, an Agent with conversation memory, and this node as the reply. Configure its reply node like this:
- Set
credentialto the secret holding your bot token. - Set
chatIdto{{ $start->payload->message->chat->id }}(the chat that triggered the flow). - Set
textto{!! $prev->content !!}(the Agent node emits its reply undercontent; the agent’s answer may contain characters that escaping would corrupt).
When an agent calls this node as a tool, the send is approval-gated by default; see How to add human approval.
Limitations
Section titled “Limitations”- The node sends text (with optional
MarkdownV2,HTML, orMarkdownformatting throughparseMode) and the files in Attachments, up to 50 MB together. It does not send inline keyboards. - A bot can only message chats that have started a conversation with it, a Telegram platform rule.
Related
Section titled “Related”- How to build a Telegram agent is the full inbound-to-reply setup.
- How to connect an agent to a chat channel
- Slack · WhatsApp · Email
- Secrets stores the bot token securely.
- REST Request calls the Bot API directly for the methods this node does not send, such as
sendPhotoor an inline keyboard.