Interface InputVoiceNote

A video note to be sent.

interface InputVoiceNote {
    @type: "inputVoiceNote";
    duration: number;
    voice_note: InputFile;
    waveform: string;
}

Properties

@type: "inputVoiceNote"
duration: number

Duration of the voice note, in seconds.

voice_note: InputFile

Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio.

waveform: string

Waveform representation of the voice note in 5-bit format.