Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node, named "Telegram CoPilot," provides a comprehensive interface to interact with the Telegram API through various resources and operations. Specifically for the Message resource and the Edit Message Text operation, it allows users to edit the text content of an existing message in a specified chat.
Common scenarios where this node is beneficial include:
- Updating or correcting the content of a previously sent message.
- Dynamically modifying messages based on new information or user input.
- Automating message management workflows within Telegram chats.
For example, you might use this node to update a status message in a group chat after a process completes or to correct typos in a notification message sent earlier.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat where the message exists. |
| Message ID | The unique identifier of the message to be edited. |
| Message Text | The new text content that will replace the current text of the specified message. |
Output
The output is a JSON array containing the response from the Telegram API after attempting to edit the message text. This typically includes details about the updated message object, such as its identifiers, updated content, timestamps, and other metadata.
No binary data output is involved in this operation.
Dependencies
- Requires an active Telegram API authentication credential (an API key/token) configured in n8n.
- Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions and invoke Telegram API methods.
- The node expects the Telegram session to be logged in and ready; otherwise, it prompts for login via phone number and authentication codes.
Troubleshooting
- Session Not Logged In: If the Telegram session is not authenticated, the node will throw errors instructing to log in first. Use the login commands or nodes to establish a session.
- Unauthorized Errors: These indicate expired or invalid sessions. Re-login is required.
- "A closed client cannot be reused" Error: This means the Telegram client session was closed unexpectedly. Marked as closed internally, the user must re-authenticate.
- Invalid Chat or Message IDs: Ensure that the provided
chat_idandmessage_idare correct and correspond to existing entities in Telegram. - Network or API Issues: Temporary failures may occur due to network problems or Telegram API limits.
Links and References
- Telegram API Documentation
- Telepilot Login Guide
- Telegram Bot API - Editing Messages (for conceptual reference)