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 scenarios where you need to update or correct the content of a previously sent message without sending a new one. For example, you can use it to fix typos, update information, or modify message content dynamically based on workflow logic.

Use Case Examples

  1. Editing a message to correct a typo after it has been sent.
  2. Updating a message text to reflect new information or status changes in a chat.

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 be edited.
Message Text The new text content to replace the existing message text.

Output

JSON

  • message_id - The identifier of the edited message.
  • chat_id - The identifier of the chat where the message was edited.
  • input_message_content
    • text
      * text - The updated text content of the message.

Dependencies

  • Requires an API key credential for Telegram via the telePilotApi credential.

Troubleshooting

  • Common errors include 'Unauthorized' which indicates the Telegram session is not logged in or has expired; re-login is required.
  • Errors about a closed client indicate the Telegram client session was closed and a new login is needed.
  • Ensure the Chat ID and Message ID are correct and correspond to existing messages in the chat.
  • If the node fails, enabling 'Continue On Fail' can allow the workflow to proceed while logging the error.

Links

Discussion