Interface SendTextMessageDraft

Sends a draft for a being generated text message; for bots only. Request type for Tdjson#sendTextMessageDraft.

interface SendTextMessageDraft {
    @type: "sendTextMessageDraft";
    can_stop?: boolean;
    chat_id: number;
    draft_id: string;
    forum_topic_id: number;
    keep_on_stop?: boolean;
    text: FormattedText;
}

Properties

@type: "sendTextMessageDraft"
can_stop?: boolean

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

chat_id: number

Chat identifier.

draft_id: string

Unique identifier of the draft.

forum_topic_id: number

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

keep_on_stop?: boolean

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

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