send_voice
Send a voice message to a Telegram chat using a URL or local file path. Optionally specify chat, caption, and visibility settings.
Instructions
Send a voice message to a Telegram chat. Can send from URL or local file path. If chat_id is omitted, sends to the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voice | Yes | Voice file URL, file_id or absolute local file path | |
| caption | No | Voice caption (up to 1024 chars) | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| duration | No | Voice duration in seconds | |
| parse_mode | No | Caption formatting mode | |
| reply_markup | No | JSON string with reply markup | |
| protect_content | No | Protect message from forwarding/saving | |
| caption_entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| reply_parameters | No | JSON object with ReplyParameters (e.g. {"message_id": 123}) | |
| message_thread_id | No | Topic/thread ID for supergroups with topics enabled | |
| disable_notification | No | Send silently without notification |