Actions26
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node, named "Telegram CoPilot," integrates with the Telegram API to perform various Telegram-related actions programmatically. Specifically for the User resource and the Create New Secret Chat operation, it allows creating a new secret chat with a specified user by their user ID.
Common scenarios where this node is beneficial include automating Telegram interactions such as managing chats, sending messages, or retrieving user information without manual intervention. For example, you could automate customer support by creating secret chats with users or integrate Telegram messaging into your workflows.
Practical example: Automatically create a secret chat with a user when they sign up on your platform, enabling private communication through Telegram.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user with whom to create the new secret chat. This is a required string input. |
Output
The output is a JSON array containing the result of the invoked Telegram API method for creating a new secret chat. The structure corresponds to Telegram's response for the createNewSecretChat method, typically including details about the newly created secret chat object (such as chat ID, type, and other metadata).
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 connection manager to handle Telegram client sessions.
- Requires proper login/authentication via phone number before performing operations.
- The node uses the Telegram TDLib-based API through a client managed internally.
Troubleshooting
- Session Not Logged In: If the Telegram account session is not logged in, the node will throw an error prompting to log in first. Use the login operation with phone number authentication before attempting to create chats.
- Closed Client Error: If the client session was closed or terminated, the node suggests re-login to restore the session.
- Unauthorized Error: Indicates invalid or expired credentials; re-authentication is necessary.
- Invalid User ID: Providing an incorrect or non-existent user ID may cause the API call to fail.
- Network Issues: Connectivity problems can prevent successful API calls.
To resolve these issues:
- Ensure the Telegram account is logged in using the login operation.
- Verify the correctness of the user ID.
- Check network connectivity.
- Follow the provided guide at https://telepilot.co/login-howto for detailed login and usage instructions.