Interface InputMessageVoiceNote

A voice note message. Subtype of InputMessageContent.

interface InputMessageVoiceNote {
    @type: "inputMessageVoiceNote";
    caption: FormattedText;
    self_destruct_type: MessageSelfDestructType;
    voice_note: InputVoiceNote;
}

Properties

@type: "inputMessageVoiceNote"
caption: FormattedText

Voice note caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

self_destruct_type: MessageSelfDestructType

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

voice_note: InputVoiceNote

Voice note to be sent.