Telegram Send Message

Sends messages via the Telegram Bot API from a workflow. Use it for bot replies, notifications, confirmations, and any programmatic messaging in Telegram.

Requirements

This plugin requires a Telegram bot token:

  1. Create a bot via @BotFather and copy the token
  2. Add TELEGRAM_BOT_TOKEN on the Env Vars page

The same bot token used by Telegram Trigger works for sending messages.

Output

HandleTypeDescription
resultobjectTelegram message send result

The result (accessed as {{ telegram_message.* }}) shape:

FieldTypeDescription
successbooleanWhether the message was sent successfully
message_idnumberID of the sent message
chat_idstringChat ID the message was sent to
errorstringError message if success is false

Settings

SettingTypeDescription
chat_idstringChat ID to send the message to. Supports {{ }} bindings.
textstringMessage text content. Supports {{ }} bindings.
parse_modeenumText formatting mode: Markdown, HTML, or MarkdownV2. Default: Markdown.
reply_to_message_idnumberMessage ID to reply to (threads the response). Supports {{ }} bindings.

Authentication

Env VarDescription
TELEGRAM_BOT_TOKENBot token from @BotFather (format: 123456:ABC-DEF...)

Example

Reply to a user after a Telegram Trigger:

  • Chat ID: {{ telegram.chat_id }}
  • Text: Hello {{ telegram.from.first_name }}! I received your message.
  • Reply To Message ID: {{ telegram.message_id }}

Send a formatted confirmation with Markdown:

  • Chat ID: {{ telegram.chat_id }}
  • Text: *Order confirmed*\nYour order \#12345` has been placed.`
  • Parse Mode: Markdown

Reply Threading

Set Reply To Message ID to thread your response under the user's original message. Use {{ telegram.message_id }} from a Telegram Trigger to reply directly to the incoming message.

AI Agent Tool

Connect this node to an AI Agent as a tool. The agent can send Telegram confirmations on your behalf — for example, "send the user a confirmation on Telegram" — using dynamic values from the conversation context.

Parse Modes

ModeUsage
MarkdownLegacy Markdown: bold, italic, inline code
HTMLHTML tags: bold, italic, and code formatting
MarkdownV2Strict MarkdownV2 — special characters must be escaped with a backslash

Common Gotchas

  • Parse mode errors: Invalid formatting for the selected parse mode causes Telegram to reject the message. Test formatting with simple messages first.
  • MarkdownV2 escaping: Characters like ., -, (, ) must be escaped in MarkdownV2 mode.
  • Chat must exist: The user must have started a conversation with your bot before you can send them messages.
  • Check telegram_message.success: Connect the On Error branch or add an If node to handle send failures.

See Also

On this page