Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Edit Message Text

AI-generated

Summary

Edit a specific Telegram message's text within a given chat by specifying the chat ID, message ID, and the new message text.

Inputs

  • Chat ID (required) — The identifier of the chat where the message to be edited is located.
  • Message ID (required) — The identifier of the message to edit.
  • Message Text (required) — The new text content to replace the existing message text.

Output shape

A single message object representing the updated message with the edited text.

The updated message object is returned upon successful operation. Errors may arise if the message ID or chat ID is invalid or if the bot lacks permissions to edit the message.

Examples

Example 1: Update message text in a chat

Provide valid chat_id and message_id, then set messageText to the new content to update the message text.

Links

Discussion