MadelineProtoDocs/docs/TD_docs/constructors/voice.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

901 B

title description image
voice Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: voice

Back to constructors index

Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container

Attributes:

Name Type Required Description
duration int Yes Duration of the voice record in seconds as defined by sender
waveform bytes Yes Waveform representation of the voice in 5-bit format
mime_type string Yes MIME type of a file as defined by sender
voice file Yes File with the voice record

Type: Voice