Actions26
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node provides integration with Telegram via the TelePilot API, enabling automation of various Telegram actions. Specifically, for the Message resource and Edit Message Text operation, it allows editing the text content of an existing message in a specified chat.
This is useful when you want to programmatically update messages after they have been sent, such as correcting typos, updating information, or dynamically changing content based on workflow logic.
Practical example:
- Automatically update a status message in a Telegram group chat to reflect the latest data from an external system.
- Correct or append additional information to a previously sent notification message.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat where the message exists. |
| Message ID | The identifier of the specific message to edit within the chat. |
| Message Text | The new text content that will replace the current text of the message. |
Output
The node outputs a JSON array containing the response from the TelePilot API after attempting to edit the message text. This response typically includes details about the edited message object, confirming the update.
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 API calls.
- The Telegram account must be logged in and authorized; otherwise, the node will throw errors prompting re-login.
Troubleshooting
Session Closed or Unauthorized Errors:
If the error message states "A closed client cannot be reused" or "Unauthorized," it means the Telegram session has expired or was terminated. The user must log in again using the login flow described at https://telepilot.co/login-howto.Invalid Chat ID or Message ID:
Providing incorrect identifiers may cause the API call to fail. Verify that the chat and message IDs are correct and accessible by the authenticated Telegram account.Empty or Invalid Message Text:
Ensure the new message text is not empty and conforms to Telegram's message formatting rules.
Links and References
- TelePilot Login Guide – Instructions for authenticating your Telegram account.
- Telegram Bot API Documentation – Official reference for editing message text (for conceptual understanding).