editMessageCaptionInline
Edits the caption of an inline Telegram message, letting you update text, formatting, entities, or keyboard markup without resending the message.
Instructions
Use this method to edit captions of inline messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inline_message_id": "<inline_message_id>"
},
"name": "editMessageCaptionInline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | New caption of the message, 0-1024 characters after entities parsing | |
| parse_mode | No | Mode for parsing entities in the message caption. See formatting options for more details. | |
| reply_markup | No | An object for an inline keyboard | |
| caption_entities | No | A list of special entities that appear in the caption, which can be specified instead of parse_mode | |
| inline_message_id | Yes | 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. |