sendMessageDraft

Stream a drafted text message. BOT-ONLY

Parameters

chatId: ID

The identifier of a chat to send the message to.

draftId: number

The identifier of the draft.

text: string

The message’s text.

messageThreadId?: number

The identifier of a thread to send the message to.

parseMode?: ParseMode

The parse mode to use. If omitted, the default parse mode will be used.

entities?: MessageEntity[]

The message’s entities.

Result

void

Syntax

// Required parameters only.
await client.sendMessageDraft(chatId, draftId, text);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendMessageDraft(chatId, draftId, text, {
    messageThreadId,
    parseMode,
    entities,
});