teleproto - v1.229.0
    Preparing search index...

    Interface EditMessageParams

    Interface for editing messages

    interface EditMessageParams {
        buttons?: any;
        file?: FileLike;
        forceDocument?: boolean;
        formattingEntities?: TypeMessageEntity[];
        invertMedia?: boolean;
        linkPreview?: boolean;
        message: number | Message;
        parseMode?: any;
        quickReplyShortcutId?: number;
        richMessage?: TypeInputRichMessage;
        schedule?: number;
        scheduleRepeatPeriod?: number;
        text?: string;
    }
    Index
    buttons?: any

    The matrix (list of lists), row list or button to be shown after sending the message.
    This parameter will only work if you have signed in as a bot. You can also pass your own ReplyMarkup here.

    All the following limits apply together:

    • There can be 100 buttons at most (any more are ignored).
    • There can be 8 buttons per row at most (more are ignored).
    • The maximum callback data per button is 64 bytes.
    • The maximum data that can be embedded in total is just over 4KB, shared between inline callback data and text.
    file?: FileLike

    The file object that should replace the existing media in the message. Does nothing if entity was a Message

    forceDocument?: boolean

    Whether to send the given file as a document or not.

    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?

    message: number | Message

    The ID of the message (or Message itself) to be edited. If the entity was a Message, then this message will be treated as the new text.

    parseMode?: any

    See the TelegramClient.parseMode property for allowed values. Markdown parsing will be used by default.

    quickReplyShortcutId?: number

    If editing a message inside a quick-reply shortcut, the ID of that shortcut.

    richMessage?: TypeInputRichMessage

    New rich message content (Layer 228 page-block tree).

    schedule?: number

    If set, the message won't be edited immediately, and instead it will be scheduled to be automatically edited at a later time.

    scheduleRepeatPeriod?: number

    Repeat period (in seconds) for recurring scheduled messages. Requires schedule.

    text?: string

    The new text of the message. Does nothing if the entity was a Message.