Telegram Multi icon

Telegram Multi

Send messages and interact with multiple Telegram bots

Actions7

Document → Send

AI-generated

Overview

This node sends a document 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 document URL or file ID to send the document. Additional optional fields allow customization such as caption, parse mode, disabling notifications, and replying to a specific message.

Use Case Examples

  1. Sending a PDF document to a Telegram channel using a bot token stored in environment variables.
  2. Sending a document with a caption to a group chat, disabling notifications for the message.

Properties

Name Meaning
Authentication Method Method to provide the Telegram bot token, options include encrypted credentials, environment variable, or direct input.
Environment Token The environment variable containing the bot token, shown if 'Environment Variable' authentication method is selected.
Bot Token The bot token from @BotFather, shown if 'Direct Input' authentication method is selected.
Chat ID The chat ID, username (@channel) or group ID (-123456789) where the document will be sent.
Document The URL or file ID of the document to send.
Additional Fields Optional fields to customize the message, including parse mode, caption, disabling web page preview, disabling notification, and replying to a message.

Output

JSON

  • json - The response from the Telegram API after sending the document, containing details about the sent message.

Dependencies

  • Telegram Bot API

Troubleshooting

  • Ensure the bot token is valid and correctly formatted; invalid tokens will cause errors.
  • Verify the chat ID is correct and the bot has permission to send messages to the chat.
  • If using environment variables, ensure they are properly set and accessible by n8n.
  • Check the document URL or file ID is accessible and valid.

Links

Discussion