Send Message
telegram.send_message
ActionChat & messagingconnection required
Calls the Telegram Bot API sendMessage with the connection's token.
Send a message to a Telegram chat, channel or user via a bot.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Telegram
- Secret shape
- the bot token, or {"token": "…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
chat_id Numeric chat id, or @channelusername. | string | Yes | — | — | — |
text Message text. Supports {{ }} expressions. | string | Yes | — | — | — |
parse_mode Formatting: MarkdownV2 or HTML. | string | No | — | one of "", "MarkdownV2", "HTML" | — |
disable_web_page_preview Suppress link previews. | boolean | No | — | — | — |
Output
One shape.
sent
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
message_id Id of the sent message. | number | — |
chat_id Chat the message landed in. | string | — |
{
"chat_id": "",
"message_id": 0,
"ok": true
}Notes
- The bot must have been started by the user (or added to the group/channel) before it can message them — Telegram error 'chat not found' / 'bot was blocked' otherwise.
See Send Message run in a workflow.
In a technical demo we add the Telegram connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.