Send audio file
The telegram_bot_api-send-audio-file tool enables seamless sending of audio files directly to your Telegram Desktop application. Designed for ease of use, it supports rich captioning, customizable notifications, and various audio formats to enhance your messaging experience.
Features
- Send audio files using unique chat ID or public chat username.
- Support for multiple audio MIME types including MPEG, WAV, OGG, and MID.
- Add captions with Markdown, HTML, or MarkdownV2 formatting for customized messages.
- Option to send messages silently without notifications on iOS and with silent notifications on Android.
- Include detailed metadata such as track title, performer, duration, and custom reply markup for interactive messages.
Benefits
- Enhances Telegram bot functionality by enabling audio file transmission effortlessly.
- Improves user engagement through rich captions and formatted text support.
- Allows sending silent notifications to avoid disturbing recipients while ensuring message delivery.
- Supports various audio formats compatible with Telegram’s requirements.
- Customizable interface options via inline keyboards and reply markup for interactive bot experiences.
Description
Sends an audio file to your Telegram Desktop application. See the docs for more information
Parameters
11 parameters
| Name | Type | Description |
|---|---|---|
| chatIdrequired | string | Enter the unique identifier for the target chat (e.g. |
| caption | string | Enter the audio caption. |
| filename | string | Enter a filename. |
| audiorequired | string | File to send. Pass a file_id to send a file that exists on the Telegram servers, pass an HTTP URL for Telegram to get a file from the Internet, or pass the path to the file (e.g., |
| parse_mode | enum | Select MarkdownV2-style, HTML-style, or Markdown-style of the text if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. |
| disable_notification | boolean | Choose if to send the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound. |
| duration | integer | Enter duration of sent audio in seconds. |
| performer | string | Enter a performer. |
| title | string | Enter a track name. |
| reply_markup | string | Enter additional interface options that are a JSON-serialized object including an inline keyboard, a custom reply keyboard, instructions to remove the reply keyboard or instructions to force a reply from the user, e.g. |
| contentType | enum | Select or enter the MIME type of data. |