Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node implements a Telegram integration called "Telegram CoPilot" that allows users to interact with Telegram's API for various resources such as messages, chats, users, files, and groups. Specifically, the Forward Messages operation under the Message resource enables forwarding one or more messages from one chat to another.
This node is beneficial in automation workflows where messages need to be programmatically forwarded between different Telegram chats or channels without manual intervention. For example, it can be used to forward alerts, notifications, or important messages from a monitored chat to a team chat automatically.
Properties
Name | Meaning |
---|---|
Chat ID | The identifier of the target chat where messages will be forwarded. |
From Chat ID | The identifier of the source chat from which messages will be forwarded. |
Message IDs | Comma-separated list of message identifiers to forward from the source chat to the target. |
Output
The output is a JSON array containing the response(s) from the Telegram API after forwarding the specified messages. Each element corresponds to the result of the forwarding action, typically including details about the forwarded messages such as their new message IDs and status.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating with the Telegram API.
- Depends on the internal Telegram client session management handled by the node's connection manager.
- Requires proper login/authentication via phone number and code before operations can be performed.
- The node uses the
TelePilotNodeConnectionManager
internally to manage Telegram sessions and invoke API calls.
Troubleshooting
- Session Not Logged In: If the Telegram session is not logged in or has expired, errors like "Please login" or "Session was closed or terminated" may occur. The user should re-authenticate using the login commands described in the node documentation.
- Unauthorized Errors: These indicate invalid or expired credentials; re-login is required.
- Invalid Chat or Message IDs: Forwarding will fail if the provided chat IDs or message IDs do not exist or are inaccessible by the authenticated account.
- Empty or Malformed Message IDs: Ensure the message IDs are correctly formatted as comma-separated strings without extra spaces or empty entries.
- Network Issues: Connectivity problems can cause failures in invoking Telegram API methods.
Links and References
- Telegram CoPilot Login Guide
- Telegram API Documentation (general reference): https://core.telegram.org/bots/api
This summary focuses on the Message - Forward Messages operation as requested, based on static analysis of the provided source code and property definitions.