editMessageText
Modify the content of a sent Telegram message in place. Provide the new text and target message details to update a regular or inline message without sending a new one.
Instructions
Edit text and game messages. Returns the edited Message on success, or True if the message is an inline message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New text of the message, 1-4096 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). | |
| entities | No | A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode. | |
| 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 text. See formatting options for more details. | |
| reply_markup | No | A JSON-serialized object for an inline keyboard. | |
| inline_message_id | No | Required if chat_id and message_id are not specified. Identifier of the inline message. | |
| link_preview_options | No | Link preview generation options for the message. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message to be edited was sent. |