v1
latestOpenAPI 3.0.32026-07-1416059.6 KBsendAudio
Use this method to send audio files, if you want Telegram clients to display them in the music player.
post/bot{token}/sendAudio
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": 1459976718,
"audio": {
"file_id": "aBc124XyZ...",
"duration": 154,
"mime_type": "audio/mpeg",
"title": "My Audio File",
"performer": "John Doe",
"file_size": 2521100
}
}
}