View Source ExTDLib.Object.VoiceNote (ExTDLib v0.0.4)

Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.

NameTypeDescription
durationnumberDuration of the voice note, in seconds; as defined by the sender.
waveformbytesA waveform representation of the voice note in 5-bit format.
mime_typestringMIME type of the file; as defined by the sender.
speech_recognition_resultSpeechRecognitionResultResult of speech recognition in the voice note; may be null.
voicefileFile containing the voice note.

More details on telegram's documentation.