Actions7
Message → Edit
AI-generatedOverview
This node operation allows editing an existing message in a Telegram chat. It is useful for scenarios where you need to update the content of a previously sent message, such as correcting information, updating status, or modifying announcements in a chat or channel.
Use Case Examples
- Editing a message to correct a typo in a Telegram channel.
- Updating the status message in a group chat after a process completes.
Properties
| Name | Meaning |
|---|---|
| Authentication Method | Method to provide the bot token for authentication with Telegram API. Options include encrypted credentials, environment variable, or direct input. |
| Environment Token | Environment variable containing the bot token, shown only if authentication method is environment variable. |
| Bot Token | Direct bot token input, shown only if authentication method is direct input. |
| Chat ID | Identifier of the chat where the message to be edited is located. Can be a username (@channel_name) or a group ID (-123456789). |
| Text | New text content to replace the existing message text. |
| Message ID | ID of the message to edit. |
| Additional Fields | Optional parameters to customize the message editing, such as parse mode, disable web page preview, disable notification, reply to message ID, and caption (if applicable). |
Output
JSON
jsonmessage_id- ID of the edited message returned by Telegram API.chat- Chat object containing information about the chat where the message was edited.date- Date the message was edited.text- Updated text content of the message.
Dependencies
- Telegram Bot API token (via encrypted credentials, environment variable, or direct input)
Troubleshooting
- Ensure the bot token is valid and correctly formatted; invalid tokens will cause errors.
- The message ID must correspond to an existing message in the specified chat; otherwise, the edit will fail.
- If using environment variables for the token, ensure the environment variable is correctly set and accessible.
- Errors related to permissions may occur if the bot does not have rights to edit messages in the chat.
Links
- Telegram Bot API - editMessageText - Official Telegram API documentation for editing messages.