Send Audio
Send an audio file to a Telegram chat.
The Send Telegram Audio action allows you to send an audio file to a specified Telegram chat. You can send audio files by providing a file_id
for a file that already exists on Telegram's servers, by sending a URL to an audio file, or by uploading a new audio file.
This action is useful for building bots that send voice notes, music, or any other type of audio content.
Configuration
Chat ID
string
The unique identifier for the target chat, or the username of the target channel (e.g., @channelusername
).
Audio
string
The audio file to send. This can be a file_id
, a URL, or a new file upload.
Caption
string
(Optional) A caption for the audio file, up to 1024 characters.
Parse Mode
string
(Optional) The mode for parsing entities in the caption. Can be Markdown
, MarkdownV2
, or HTML
.
Duration
integer
(Optional) The duration of the audio in seconds.
Performer
string
(Optional) The performer of the audio.
Title
string
(Optional) The title of the track.
Disable Notification
boolean
(Optional) If set to true
, the message will be sent silently, without a notification.
Protect Content
boolean
(Optional) If set to true
, the content of the sent message will be protected from forwarding and saving.
Input
chat_id
(string
): The target chat's identifier.audio
(string
): The audio file to be sent.caption
(string
, optional): A caption for the audio.... and other optional parameters as described in the configuration table.
Output
success
(boolean
): Indicates whether the audio was sent successfully.sent_message
(object
, optional): The message that was sent, if successful.error
(string
, optional): An error message, if the audio was not sent successfully.
Example
In this example, the action sends an audio file from a URL to the Telegram channel @mychannel
. The output indicates that the message was sent successfully.
Last updated
Was this helpful?