Interface DraftMessageContentVoiceNote

A voice note message draft. Subtype of DraftMessageContent.

interface DraftMessageContentVoiceNote {
    @type: "draftMessageContentVoiceNote";
    duration: number;
    file_path: string;
    self_destruct_type: MessageSelfDestructType;
    waveform: string;
}

Properties

@type: "draftMessageContentVoiceNote"
duration: number

Duration of the voice note, in seconds.

file_path: string

Path to the file with the voice note.

self_destruct_type: MessageSelfDestructType

Voice note self-destruct type; may be null if none; pass null if none; private chats only.

waveform: string

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