Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node sends audio messages via Telegram. It supports sending audio files either by referencing existing files on Telegram servers, providing HTTP URLs, or uploading binary audio data directly. It is useful for automating audio message delivery in Telegram chats, such as sending voice notes, music tracks, or audio alerts to users or groups.
Use Case Examples
- Sending a pre-recorded audio file to a specific Telegram chat by providing the file ID or URL.
- Uploading and sending an audio file stored in binary format within the workflow to a Telegram chat.
- Sending audio messages with additional metadata like performer name and track title.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the audio will be sent. |
| Binary File | Indicates whether the audio data to upload should be taken from a binary field. |
| Input Binary Field | The name of the input binary field containing the audio file to be uploaded (used if Binary File is true). |
| Audio | Audio file to send. Can be a Telegram file ID or an HTTP URL (used if Binary File is false). |
| Reply Markup | Additional interface options for the message, such as inline keyboard or force reply. |
| 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 an API key credential
Troubleshooting
- Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
- If uploading binary data, make sure the binary property contains a valid audio file with a proper file name and MIME type.
- For sending existing files by file ID or URL, verify the file ID or URL is accessible and valid.
- Check that additional fields like performer, title, and caption conform to Telegram API limits (e.g., caption length).
- If the node throws errors about missing file names when using binary data, set the file name manually in the Additional Fields section.
Links
- Telegram Bot API - sendAudio - Official Telegram API documentation for sending audio messages.