editMessageCaption
Edit a message’s caption.
Parameters
The identifier of the chat that contains the message.
messageId: number
The message’s identifier.
businessConnectionId?: string
The identifier of a business connection ID to perform the action on. Bot-only.
The message’s new caption. If omitted, the caption will be removed.
The parse mode to use. If omitted, the default parse mode will be used.
The caption’s entities.
The reply markup of the message. Bot-only.
Result
The edited message.
Syntax
// Required parameters only.
await client.editMessageCaption(chatId, messageId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editMessageCaption(chatId, messageId, {
businessConnectionId,
caption,
parseMode,
entities,
replyMarkup,
});