editInlineMessageCaption

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

Parameters

inlineMessageId: string

The inline message’s identifier.

caption?: string

The message’s new caption. If omitted, the caption will be removed.

parseMode?: ParseMode

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

entities?: MessageEntity[]

The caption’s entities.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

Result

void

Syntax

// Required parameters only.
await client.editInlineMessageCaption(inlineMessageId);

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