TDLib v0.0.2 TDLib.Object.VoiceNote View Source
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.
| Name | Type | Description |
|---|---|---|
| duration | number | Duration of the voice note, in seconds; as defined by the sender. |
| waveform | string | A waveform representation of the voice note in 5-bit format. |
| mime_type | string | MIME type of the file; as defined by the sender. |
| voice | file | File containing the voice note. |
More details on telegram’s documentation.