Skip to content

UpdatePendingMessage

Update · TDLib 1.8.67 · d1085f9c

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

UpdatePendingMessage(
  chat_id: int53,
  forum_topic_id: int32,
  draft_id: int64,
  can_stop: Bool,
  keep_on_stop: Bool,
  content: MessageContent
) → Update

chat_id

int53

Chat identifier

forum_topic_id

int32

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

draft_id

int64

Unique identifier of the message draft within the message thread

can_stop

Bool

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

keep_on_stop

Bool

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

content

MessageContent

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