Actions26
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node, part of the "Telegram CoPilot" integration, allows users to interact with Telegram's API programmatically. Specifically, for the User resource and Create Private Chat operation, it creates a private chat with a specified user on Telegram. This is useful in scenarios where automated workflows need to initiate direct conversations with users, such as customer support bots, notification systems, or personal assistants.
For example, you might use this node to automatically start a private chat with a user after they sign up on your platform or to force-create a chat session before sending messages.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Telegram user with whom the private chat will be created. |
| Force | Boolean flag indicating whether the creation of the private chat should be forced (true) or not (false). |
Output
The output is a JSON array containing the result of the createPrivateChat invocation. This typically includes details about the newly created private chat object, such as chat identifiers and metadata returned by Telegram's API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with Telegram via the TelePilot API.
- The node depends on the TelePilotNodeConnectionManager service to manage Telegram client sessions.
- Proper login/authentication must be established beforehand using the login operations provided by the node (e.g., phone number login).
- Network access to Telegram's API endpoints is required.
Troubleshooting
- Session Not Logged In: If the Telegram account session is not logged in or has expired, the node will throw errors prompting re-login. Users should follow the login instructions at https://telepilot.co/login-howto.
- Unauthorized Errors: These indicate invalid or expired credentials; re-authentication is necessary.
- Closed Client Error: If the client session was closed unexpectedly, the node marks the client as closed and requires a new login.
- Invalid User ID: Providing an incorrect or non-existent user ID may cause the operation to fail.
- Force Flag Usage: Misuse of the force flag could lead to unexpected behavior; ensure it is set according to your workflow needs.
Links and References
- TelePilot Login Guide
- Telegram Bot API Documentation (for general understanding of Telegram chats)
- TelePilot Official Website