Telegram Advanced icon

Telegram Advanced

Sends data to Telegram With Custom and Advanced Options

Overview

This node operation sends an audio file message to a specified Telegram chat. It supports sending audio either by referencing an existing file on Telegram servers, providing an HTTP URL, or uploading binary audio data directly. The node allows customization of the audio message with additional fields such as performer name, title, duration, thumbnail, and reply markup options like inline keyboards or reply keyboards. It is useful for automating audio message delivery in Telegram chats, such as sending voice notes, music tracks, or audio alerts.

Use Case Examples

  1. Sending a pre-uploaded audio file to a Telegram chat by specifying its file ID.
  2. Uploading and sending an audio file from binary data stored in the workflow.
  3. Adding an inline keyboard to the audio message for interactive user responses.

Properties

Name Meaning
Chat ID Unique identifier for the target Telegram chat or username of the target channel.
Binary File Indicates whether the audio file to send should be taken from a binary field in the workflow input.
Input Binary Field The name of the binary property containing the audio file data to upload when Binary File is true.
Audio The audio file to send when Binary File is false. Can be a Telegram file ID or an HTTP URL.
Reply Markup Additional interface options for the message, such as inline keyboard, force reply, or custom reply keyboards.
Additional Fields Optional parameters to customize the audio message, including caption, performer, title, duration, thumbnail, parse mode, reply to message ID, message thread ID, disable notification, and custom JSON fields for advanced Telegram API options.

Output

JSON

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

Dependencies

  • Telegram API with appropriate authentication credentials

Troubleshooting

  • Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
  • If using binary data, verify the binary property name is correct and the binary data includes a valid file name and MIME type.
  • When sending a file by ID or URL, ensure the file exists and is accessible by Telegram servers.
  • Check for required additional fields like file name when uploading binary data to avoid errors.

Links

Discussion