Telegram Multi icon

Telegram Multi

Send messages and interact with multiple Telegram bots

Actions7

Message → Send

AI-generated

Overview

This node sends a message to a specified Telegram chat using a Telegram bot. It supports multiple authentication methods for the bot token, including encrypted credentials, environment variables, and direct input. Users provide the chat ID and the message text, with optional additional fields to customize the message, such as parse mode, caption, disabling web page previews, silent notifications, and replying to a specific message. This node is useful for automating Telegram communications, such as sending alerts, notifications, or updates to channels, groups, or individual chats.

Use Case Examples

  1. Sending a notification message to a Telegram channel when a new event occurs.
  2. Automating customer support messages to a Telegram group.
  3. Broadcasting updates to multiple Telegram chats using different bot tokens.

Properties

Name Meaning
Authentication Method Choose how to provide the bot token for authenticating with the Telegram API. Options include encrypted credentials stored in n8n, environment variable, or direct input (not recommended for production).
Environment Token The environment variable containing the bot token, used if the environment authentication method is selected.
Bot Token The bot token from @BotFather, used if the direct input authentication method is selected.
Chat ID The ID, username (@channel), or group ID (-123456789) of the Telegram chat where the message will be sent.
Text The text content of the message to be sent.
Additional Fields Optional fields to customize the message, including parse mode (HTML, Markdown, MarkdownV2), caption for media, disabling web page previews, silent notifications, and replying to a specific message ID.

Output

JSON

  • json
    • message_id - The unique identifier of the sent message.
    • chat - Information about the chat where the message was sent.
    • date - Timestamp of when the message was sent.
    • text - The text content of the sent message.

Dependencies

  • Telegram Bot API

Troubleshooting

  • If the bot token is missing or invalid, the node will throw an error indicating the token is required or invalid format. Ensure the token is correctly provided according to the selected authentication method.
  • If the chat ID is incorrect or the bot does not have permission to send messages to the chat, the Telegram API will return an error. Verify the chat ID and bot permissions.
  • Network or API errors may occur; enabling 'Continue On Fail' allows the workflow to proceed with error details in the output.

Links

Discussion