Interface DraftMessage

Contains information about a message draft.

interface DraftMessage {
    @type: "draftMessage";
    date: number;
    effect_id: string;
    input_message_text: InputMessageContent;
    reply_to: InputMessageReplyTo;
}

Properties

@type: "draftMessage"
date: number

Point in time (Unix timestamp) when the draft was created.

effect_id: string

Identifier of the effect to apply to the message when it is sent; 0 if none.

input_message_text: InputMessageContent

Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.

Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.