Interface UpdatePendingTextMessage

A new pending text 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, and be deleted whenever any incoming message from the bot in the message thread is received. Subtype of Update.

interface UpdatePendingTextMessage {
    @type: "updatePendingTextMessage";
    chat_id: number;
    draft_id: string;
    forum_topic_id: number;
    text: FormattedText;
}

Properties

@type: "updatePendingTextMessage"
chat_id: number

Chat identifier.

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.

Text of the pending message.