sendRichTextDraft

Stream a drafted rich text message. BOT-ONLY

Parameters

chatId: ID

The identifier of a chat to send the message to.

draftId: number

The identifier of the draft.

richText: InputRichText

The message’s rich text.

messageThreadId?: number

The identifier of a thread to send the message to.

Result

void

Syntax

// Required parameters only.
await client.sendRichTextDraft(chatId, draftId, richText);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendRichTextDraft(chatId, draftId, richText, { messageThreadId });