Interface UpdatePendingMessage

A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread. Subtype of Update.

interface UpdatePendingMessage {
    @type: "updatePendingMessage";
    can_stop?: boolean;
    chat_id: number;
    content: MessageContent;
    draft_id: string;
    forum_topic_id: number;
    keep_on_stop?: boolean;
}

Properties

@type: "updatePendingMessage"
can_stop?: boolean

True, if a button that calls stopPendingMessage to stop further message generation must be shown.

chat_id: number

Chat identifier.

Content of the message; always of the type messageText or messageRichMessage.

draft_id: string

Unique identifier of the message draft within the message thread.

forum_topic_id: number

The forum topic identifier in which the message will be sent; 0 if none.

keep_on_stop?: boolean

True, if the pending message must not be automatically deleted when the user presses the Stop button.