Send voice message
The telegram_bot_api-send-voice-message tool enables sending voice messages directly through Telegram bots. It supports various audio formats and customization options, making communication richer and more interactive.
Features
- Sends voice messages to any Telegram chat using unique chat ID or username.
- Supports multiple audio MIME types such as audio/mpeg, audio/ogg, and more.
- Allows adding captions with customizable text formatting using Markdown or HTML.
- Includes options to send messages silently without notifications.
- Supports inline keyboards and custom reply keyboards for enhanced user interaction.
Benefits
- Enhances Telegram bot communication by integrating voice messages.
- Improves user engagement with personalized audio content.
- Provides flexible input options for audio files from URLs or server files.
- Enables silent message delivery to avoid disturbing users.
- Facilitates easy implementation with clear and concise API parameters.
Description
Sends a voice message. See the docs for more information
Parameters
9 parameters
| Name | Type | Description |
|---|---|---|
| chatIdrequired | string | Enter the unique identifier for the target chat (e.g. |
| caption | string | Enter the voice message caption. |
| filename | string | Enter a filename. |
| voicerequired | 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. |
| contentType | enum | Select or enter the MIME type of data. |
| duration | integer | Enter the duration of sent voice message in seconds. |
| 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. |