Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node "Telegram CoPilot" provides a comprehensive interface to interact with the Telegram API, enabling automation of various Telegram operations. It supports multiple resources such as users, contacts, chats, messages, files, groups, and login sessions. Specifically for the Message resource and the Edit Message Text operation, the node allows editing the text content of an existing message in a specified chat.
This node is beneficial in scenarios where automated management of Telegram messages is required, such as updating notifications, correcting sent messages, or dynamically changing message content based on external triggers or workflows.
Practical example:
- Automatically update a status message in a Telegram group chat when a related event occurs in another system (e.g., a project management tool updates task status).
- Correct typos or add additional information to a previously sent message without sending a new one.
Properties
Name | Meaning |
---|---|
Chat ID | The unique identifier of the chat where the message to be edited exists. |
Message ID | The unique identifier of the message that you want to edit. |
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, confirming the successful edit or providing error information if the operation failed.
The node does not output binary data for this operation.
Dependencies
- Requires an API key credential for authenticating with the Telegram API.
- Depends on the internal Telegram client session managed by the node's connection manager.
- Requires proper login/authentication via phone number and code before performing message operations.
- No additional external services are needed beyond Telegram itself.
Troubleshooting
Common issues:
- Attempting to edit a message without being logged in or with an expired session will fail.
- Providing incorrect
chat_id
ormessage_id
will result in errors as the message cannot be found. - Insufficient permissions in the chat (e.g., not being an admin in a group) may prevent editing messages.
Error messages and resolutions:
"Session was closed or terminated. Please login again"
: The Telegram session has expired or been closed; re-authenticate using the login flow."Please login"
: The node is not authenticated; perform login using the provided commands or node configuration."Unauthorized"
: Credentials are invalid or expired; refresh credentials and log in again.- Errors related to invalid IDs usually mean the
chat_id
ormessage_id
is incorrect or the bot/user does not have access.
Links and References
- Telegram API Documentation (for understanding message editing)
- Telepilot Login Guide (for authentication and session management instructions)