Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node manages Telegram login sessions and interactions via the TelePilot API. Specifically, the 'Close Session' operation under the 'Login' resource terminates the current Telegram client session associated with the provided API credentials. This is useful for securely logging out or disconnecting a Telegram account from the workflow. Practical use cases include automating session management in Telegram bots or integrations, ensuring sessions are properly closed after tasks complete to maintain security and resource efficiency.
Use Case Examples
- Automatically close a Telegram session after sending messages or performing actions to prevent unauthorized access.
- Use in workflows where multiple Telegram accounts are managed, allowing clean session termination before switching accounts.
Output
JSON
0- Message confirming the Telegram account has been disconnected.
Dependencies
- TelePilot API credentials (apiId, apiHash, phoneNumber)
Troubleshooting
- If the session is already closed or terminated, the node may throw an error indicating the client cannot be reused. In this case, re-login is required.
- Unauthorized errors indicate invalid or expired credentials; re-authentication is necessary.
- Ensure the TelePilot API credentials are correctly configured and valid to avoid connection issues.
Links
- TelePilot Login Guide - Official guide for logging in and managing Telegram sessions with TelePilot.