Documentation - v0.32.2
    Preparing search index...

    Function editInlineMessage

    • Edit sent inline message text, media and reply markup.

      Parameters

      • client: ITelegramClient
      • params: {
            disableWebPreview?: boolean;
            invertMedia?: boolean;
            media?: InputMediaLike;
            messageId: string | TypeInputBotInlineMessageID;
            progressCallback?: (uploaded: number, total: number, id?: string) => void;
            replyMarkup?: ReplyMarkup;
            richMessage?: InputRichMessage;
            text?: InputText;
            uploadCache?: RichMediaUploadCache;
        }
        • OptionaldisableWebPreview?: boolean

          Whether to disable links preview in this message

        • OptionalinvertMedia?: boolean

          Whether to invert media position.

          Currently only supported for web previews and makes the client render the preview above the caption and not below.

        • Optionalmedia?: InputMediaLike

          New message media

        • messageId: string | TypeInputBotInlineMessageID

          Inline message ID, either as a TL object, or as a TDLib and Bot API compatible string

        • OptionalprogressCallback?: (uploaded: number, total: number, id?: string) => void

          For media and rich message attachments, upload progress callback.

        • OptionalreplyMarkup?: ReplyMarkup

          For bots: new reply markup. If omitted, existing markup will be removed.

        • OptionalrichMessage?: InputRichMessage

          New rich message content

        • Optionaltext?: InputText

          New message text

          When media is passed, media.caption is used instead

        • OptionaluploadCache?: RichMediaUploadCache

          Cache for uploaded rich message media, see createRichStreamingDraft

      Returns Promise<void>