Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Edit Message Text

AI-generated

Overview

This node operation allows editing the text of an existing message in a Telegram chat. It is useful for updating or correcting messages after they have been sent. For example, you can use it to fix typos, update information, or change the content of a message without sending a new one.

Use Case Examples

  1. Correcting a typo in a previously sent message.
  2. Updating a message with new information after an event.
  3. Changing the content of a message to reflect a new status or decision.

Properties

Name Meaning
Chat ID The identifier of the chat where the message to be edited is located.
Message ID The identifier of the specific message to edit within the chat.
Message Text The new text content to replace the existing message text.

Output

JSON

  • id - The unique identifier of the edited message.
  • message - The updated text content of the message.
  • date - The timestamp when the message was edited.
  • chat - Details about the chat where the message was edited.

Dependencies

  • Requires an API key credential for Telegram API access.

Troubleshooting

  • Ensure the Telegram client session is logged in and active; otherwise, the node will throw an error indicating the session is closed or unauthorized.
  • Verify that the Chat ID and Message ID are correct and correspond to existing entities in Telegram; invalid IDs will cause errors.
  • Check that the message text is not empty and complies with Telegram's message length limits.
  • If the node throws errors related to permissions, ensure the bot or user has rights to edit messages in the specified chat.

Links

Discussion