Skip to content

sendTextMessageDraft

Function · TDLib 1.8.67 · d1085f9c

Sends a draft for a being generated text message; for bots only

sendTextMessageDraft(
  chat_id: int53,
  forum_topic_id: int32,
  draft_id: int64,
  can_stop: Bool,
  keep_on_stop: Bool,
  text: FormattedText
) → Ok

chat_id

int53

Chat identifier

forum_topic_id

int32

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

draft_id

int64

Unique identifier of the draft

can_stop

Bool

Pass true to show the user a button to stop further drafts

keep_on_stop

Bool

Pass true to keep the current draft when the user stops further generation

text

FormattedText

Draft text of the message; pass null to show a "Thinking..." placeholder