edit_message_caption
Update the caption of a previously sent media message. Supports formatting modes and inline keyboards, with optional chat or inline message targeting.
Instructions
Edit caption of a previously sent message with media. If chat_id is omitted, targets the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | New caption text (up to 1024 characters) | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| message_id | No | ID of the message to edit (required if inline_message_id not provided) | |
| parse_mode | No | Caption formatting mode | |
| reply_markup | No | JSON string with inline keyboard markup | |
| caption_entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| inline_message_id | No | Inline message ID (required if chat_id/message_id not provided) |