🎤 Send media-voice message

This method is responsible for sending a voice message for chats. The requirements for sending all media types are identical. However, there are some nuances when sending voice messages

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Message voice

Media file to send. You can use preuploaded file or upload file on the fly.
Use preupload files if you want to send same file to multiple chats and
so as not to disturb the order of messages.

string
required

Use the phone number or Chat ID of the contact/group/channel to which you want to send the message. Use Get groups to get the group ID.

string

Message ID of the message to be quoted

string

Message ID of the message to be edited

required

File to upload

string

Mime type of media

boolean

Do not use our encoding

boolean

Do not use the cache in a request

int32

Optional. For audio files, this field indicates the duration of the audio file in seconds.

number
≥ 0
Defaults to 0

Time in seconds to simulate recording voice

string

Voice message waveform

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json