Skip to content

sendVoice

Sahri Riza Umami edited this page Sep 15, 2017 · 2 revisions

Voice message.

sendVoice(chat_id, reply_to_message_id, voice, duration, waveform, caption, disable_notification, from_background, reply_markup)
Field Type Description
voice inputFile Voice file to send
duration int32 Duration of the voice in seconds
waveform bytes Waveform representation of the voice in 5-bit format
caption string Voice caption, 0-200 characters
chat_id int53 Chat to send message
reply_to_message_id int53 Identifier of a message to reply to or 0
disable_notification Bool Pass true, to disable notification about the message, doesn't works in secret chats
from_background Bool Pass true, if the message is sent from background
reply_markup ReplyMarkup Bots only. Markup for replying to message

Example

Response:

Frequently Asked Questions
The Functions

Clone this wiki locally