v1
latestOpenAPI 3.0.32026-07-1416059.6 KBsendVoice
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
post/bot{token}/sendVoice
Path parameters
tokenstring required
Your Bot Token
Request body
Response
200
Example response
{
"ok": true,
"result": {
"message_id": 1,
"from": {
"id": 12345678,
"first_name": "YourBot",
"username": "YourBot"
},
"chat": {
"id": 123456789,
"first_name": "John",
"last_name": "Doe",
"username": "JohnDoe",
"type": "private"
},
"date": 1459976225,
"voice": {
"file_id": "Abc123XyZ....",
"duration": 5,
"mime_type": "audio/ogg",
"file_size": 35015
}
}
}