Telegram

Sends data to Telegram

Overview

This node sends an animation file to a specified Telegram chat. It supports sending animations either by referencing an existing file on Telegram servers, providing an HTTP URL, or uploading a binary file directly. The node allows customization of the message with captions, reply markup options (such as inline keyboards or custom reply keyboards), and additional Telegram API options. It is useful for automating the sending of animated content in Telegram chats, such as promotional GIFs, animated instructions, or fun media in group chats.

Use Case Examples

  1. Sending a GIF animation to a Telegram group chat by specifying the chat ID and animation file ID.
  2. Uploading and sending a local animation file stored in binary data to a Telegram user.
  3. Sending an animation with an inline keyboard for interactive responses.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username where the animation will be sent.
Binary File Indicates whether the animation file to send is provided as binary data in the input.
Input Binary Field The name of the binary property containing the animation file data to upload, used if Binary File is true.
Animation The animation file to send, specified as a Telegram file ID or HTTP URL, used if Binary File is false.
Reply Markup Additional interface options for the message, such as inline keyboard, force reply, or custom reply keyboard.
Force Reply Options to configure force reply behavior, including selective reply from specific users.
Inline Keyboard Defines rows and buttons for an inline keyboard attached to the message.
Reply Keyboard Defines rows and buttons for a custom reply keyboard.
Reply Keyboard Options Options to resize, hide after use, or selectively show the reply keyboard.
Reply Keyboard Remove Options to remove the custom keyboard and selectively apply removal.
Additional Fields Additional optional parameters such as caption, disable notification, parse mode, duration, thumbnail, width, height, and custom JSON fields for advanced Telegram API options.

Output

JSON

  • json - The JSON response from the Telegram API after sending the animation.

Dependencies

  • Telegram API authentication credentials

Troubleshooting

  • Ensure the chat ID is correct and the bot has permission to send messages to the chat.
  • If sending binary data, ensure the binary property contains valid file data and a file name is provided either in the binary metadata or the node's File Name parameter.
  • Check that the animation file is in a supported format and size limits are respected by Telegram.
  • If using custom JSON fields, validate the JSON structure to avoid API errors.

Links

Discussion