sendMessageDraft
Stream a drafted text message. BOT-ONLY
Parameters
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.
The parse mode to use. If omitted, the default parse mode will be used.
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,
});