Telegram Advanced icon

Telegram Advanced

Sends data to Telegram With Custom and Advanced Options

Overview

This node sends a document message to a specified Telegram chat. It supports sending documents either by referencing an existing file on Telegram servers, providing an HTTP URL, or uploading a binary file from the workflow. It allows customization of the message with additional options such as captions, reply markup (keyboards, inline buttons), and other Telegram API advanced options. This node is useful for automating document sharing in Telegram chats, such as sending reports, PDFs, or other files to users or groups.

Use Case Examples

  1. Sending a PDF report to a Telegram group chat by specifying the chat ID and document URL.
  2. Uploading and sending a binary file from the workflow to a Telegram user chat.
  3. Sending a document with a custom inline keyboard for user interaction.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username to which the document will be sent.
Binary File Indicates whether the document to send should be taken from a binary field in the workflow data.
Input Binary Field The name of the binary property containing the file data to upload when Binary File is true.
Document The document to send, specified as a file ID on Telegram servers or an HTTP URL when Binary File is false.
Reply Markup Additional interface options for the message, such as Force Reply, Inline Keyboard, Reply Keyboard, or Reply Keyboard Remove.
Additional Fields Extra optional parameters to customize the message, including caption, disable notification, parse mode, reply to message ID, message thread ID, and advanced JSON options for Telegram API.

Output

JSON

  • result - The response from the Telegram API for the sent document message.

Dependencies

  • Telegram API with an API key credential

Troubleshooting

  • Ensure the chat ID is correct and the bot has permission to send messages to the chat.
  • If sending a binary file, ensure the binary property contains valid file data and a file name is set either in the binary metadata or the node's File Name parameter.
  • For HTTP URLs or file IDs, verify the URL or file ID is accessible and valid on Telegram servers.
  • Check for required permissions if sending to groups or channels, such as admin rights to pin messages or send media.

Links

Discussion