teleproto - v1.234.0
    Preparing search index...

    Interface SaveDraftParams

    Interface for saving a draft with TelegramClient.saveDraft.

    interface SaveDraftParams {
        effect?: BigInteger;
        formattingEntities?: TypeMessageEntity[];
        invertMedia?: boolean;
        linkPreview?: boolean;
        media?: TypeInputMedia;
        message?: string;
        parseMode?: any;
        quoteEntities?: TypeMessageEntity[];
        quoteOffset?: number;
        quoteText?: string;
        replyTo?: number | Message | TypeInputReplyTo;
        replyToPeerId?: EntityLike;
        richMessage?: TypeInputRichMessage | RichContent;
        suggestedPost?: SuggestedPost;
        topMsgId?: number | Message;
    }
    Index
    effect?: BigInteger

    Message effect ID (animation/visual effect).

    formattingEntities?: TypeMessageEntity[]

    A list of message formatting entities. When provided, the parseMode is ignored.

    invertMedia?: boolean

    If true, media will be shown below the text instead of above.

    linkPreview?: boolean

    Should the link preview be shown?

    Media attached to the draft.

    message?: string

    The draft text. An empty string (the default) clears the draft.

    parseMode?: any

    See the TelegramClient.parseMode property for allowed values.

    quoteEntities?: TypeMessageEntity[]

    Formatting entities of the quote.

    quoteOffset?: number

    Offset of the quote within the original message.

    quoteText?: string

    Quoted part of the message being replied to. Requires replyTo.

    replyTo?: number | Message | TypeInputReplyTo

    The message to reply to. Accepts a message ID, a Message, or a raw Api.TypeInputReplyTo.

    replyToPeerId?: EntityLike

    Chat where the quoted message was sent, for quoting messages from other chats.

    Rich message content (Layer 228). Build it with RichContent or the Rich helpers (Rich.markdown, Rich.html, Rich.blocks).

    suggestedPost?: SuggestedPost

    Suggested-post metadata for direct-messages channels.

    topMsgId?: number | Message

    Used for threads to save the draft in a specific topic.