Actions33
- Chat Actions
- Custom Request 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. Specifically, for the Message resource and the Edit Message Text operation, this node allows users to edit the text content of an existing message in a specified chat.
This is useful in scenarios where you want to programmatically update or correct messages after they have been sent, such as fixing typos, updating information, or dynamically changing content based on external triggers.
Practical example:
- Automatically update status messages in a Telegram group chat to reflect real-time data changes.
- Correct or append 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 exists. |
| Message ID | The unique identifier of the message to be edited within the specified chat. |
| Message Text | The new text content that will replace the current text of the specified message. |
Output
The output is a JSON object representing the updated message returned by the Telegram API after editing. This typically includes details such as the message ID, chat ID, updated text content, timestamps, and other metadata related to the message.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Telegram API.
- Relies on an internal connection manager to handle client sessions and API invocations.
- The node expects proper login/authentication state before performing operations; otherwise, it prompts for login or throws errors.
Troubleshooting
Common issues:
- Attempting to edit a message without being logged in will result in an error prompting the user to log in first.
- Providing invalid
chat_idormessage_idmay cause the Telegram API to reject the request. - Network or session expiration issues can cause the client to close unexpectedly, requiring re-login.
Error messages and resolutions:
"Please login: https://telepilot.co/login-howto": Indicates the Telegram session is not authenticated. Follow the login instructions using the ChatTrigger node or the login commands."A closed client cannot be reused, create a new Client": The session was closed or terminated. Re-authenticate to continue."Unauthorized": Authentication failed or expired. Re-login is required.- Other Telegram API errors are passed through; check the error message for specifics (e.g., invalid IDs, permission issues).
Links and References
- Telegram CoPilot Login Guide – Instructions for logging in and managing sessions.
- Telegram Bot API Documentation – Official Telegram API reference for editing message text.