Methods

saveRichTextDraft

Save a rich text message draft. USER-ONLY

Parameters

chatId: ID

The identifier of a chat.

richText: InputRichText
replyTo?: ReplyTo

Information on what the message is replying to.

effectId?: string

The identifier of a message effect to be attached to the message.

media?: InputMedia

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,
});