editMessageCaption
Update the caption of an existing Telegram message, with support for parse modes and inline keyboards. Returns the updated message, or True for inline messages.
Instructions
Edit captions of messages. Returns the edited Message on success, or True if the message is an inline message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | New caption of the message, 0-1024 characters after entities parsing. | |
| chat_id | No | Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername). | |
| message_id | No | Required if inline_message_id is not specified. Identifier of the message to edit. | |
| parse_mode | No | Mode for parsing entities in the message caption. See formatting options for more details. | |
| reply_markup | No | A JSON-serialized object for an inline keyboard. | |
| caption_entities | No | A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode. | |
| inline_message_id | No | Required if chat_id and message_id are not specified. Identifier of the inline message. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message to be edited was sent. | |
| show_caption_above_media | No | Pass True if the caption must be shown above the message media. Supported only for animation, photo and video messages. |