Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node operation creates a private chat with a specified user on Telegram. It is useful when you want to initiate a direct conversation with a user programmatically, for example, to send messages or manage chat settings. The operation supports forcing the creation of the chat even if it already exists.
Use Case Examples
- Creating a private chat with a user by their user ID to start sending messages.
- Forcing the creation of a new private chat even if a chat with the user already exists.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user to create a private chat with. |
| Force | Whether to force the creation of the private chat, even if it already exists. |
Output
JSON
user_id- The ID of the user for whom the private chat was created.force- Indicates if the creation was forced.chat- The resulting private chat object returned from Telegram API after creation.
Dependencies
- Requires Telegram API credentials (API ID, API Hash, and phone number) for authentication.
Troubleshooting
- Ensure the Telegram API credentials are correctly set and the user is logged in; otherwise, the node will throw login-related errors.
- If the session is closed or unauthorized, the node suggests re-login using the provided guide link.
- Errors related to invalid user IDs or permissions may occur if the user ID is incorrect or the bot/account lacks access.
Links
- TelePilot Login Guide - Instructions for logging in and managing Telegram sessions for this node.