Telegram

The Telegram node sends a message through the Telegram Bot API.

The Telegram node sends a message through the Telegram Bot API. Use it for chat replies, operational alerts, workflow status updates, or any downstream step that should message a Telegram user, group, or channel.

Overview

PropertyValue
Inputs1
Outputs1
Output$nodeLabel.status, $nodeLabel.ok, $nodeLabel.result

Parameters

ParameterTypeDescription
credentialIdUUIDtelegram credential containing the bot token
chatIdexpressionDestination chat, group, or channel ID
messageexpressionOutgoing message text. Supports expressions.

Setup

  1. Create a Telegram Bot credential
  2. Add the Telegram node to your workflow
  3. Select the credential
  4. Set chatId to a static chat ID or an expression such as $telegramEvent.message.chat.id
  5. Set message to the outgoing text or a template built from upstream data

Example

{
  "type": "telegram",
  "data": {
    "label": "telegramReply",
    "credentialId": "telegram-credential-uuid",
    "chatId": "$telegramEvent.message.chat.id",
    "message": "Received: $telegramEvent.message.text"
  }
}

Output Fields

ExpressionDescription
$nodeLabel.status"sent" on success
$nodeLabel.okTelegram API success flag
$nodeLabel.resultRaw sendMessage result object from Telegram
$nodeLabel.result.message_idTelegram message ID
$nodeLabel.result.chat.idDestination chat ID returned by Telegram

Common Patterns