editInlineMessageText

Edit an inline message’s text. Bot-only.

Parameters

inlineMessageId: string

The inline message’s identifier.

text: string

The new text of the message.

parseMode?: ParseMode

The parse mode to use. If not provided, the default parse mode will be used.

entities?: MessageEntity[]

The message’s entities.

linkPreview?: LinkPreview

The message’s link preview.

businessConnectionId?: string

The identifier of a business connection ID to perform the action on. Bot-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

Result

void

Syntax

// Required parameters only.
await client.editInlineMessageText(inlineMessageId, text);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editInlineMessageText(inlineMessageId, text, {
    parseMode,
    entities,
    linkPreview,
    businessConnectionId,
    replyMarkup,
});