send_local_audio_or_voice
Send a local audio file to Telegram as a music track or native voice note, using OGG/Opus for voice notes and optional title, performer, caption, and buttons.
Instructions
Send a local audio file as a music track or a native voice note (OGG/Opus recommended).
發送本機音訊檔案:mode=audio 以音樂曲目呈現(可附標題與演出者); mode=voice 以原生語音訊息呈現(建議使用 OGG/Opus 編碼)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "send_local_audio_or_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | audio | |
| title | No | ||
| caption | No | ||
| chat_id | No | ||
| duration | No | ||
| file_path | Yes | ||
| performer | No | ||
| inline_buttons | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |