saveRichTextDraft
Save a rich text message draft. USER-ONLY
Parameters
The identifier of a chat.
Information on what the message is replying to.
effectId?: string
The identifier of a message effect to be attached to the message.
A media to attach.
isMediaAboveText?: boolean
Whether the position of the media is inverted.
isLinkPreviewDisabled?: boolean
Whether link preview is disabled.
Result
void
Syntax
// Required parameters only.
await client.saveRichTextDraft(chatId, richText);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.saveRichTextDraft(chatId, richText, {
replyTo,
effectId,
media,
isMediaAboveText,
isLinkPreviewDisabled,
});