Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Login → Close Session

AI-generated

Overview

This node manages Telegram 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, effectively logging out the user. This is useful for securely ending a Telegram session or switching accounts.

Use Case Examples

  1. Use case: A user wants to programmatically log out from their Telegram account in an automation workflow to ensure no further actions are performed under that session.
  2. Example: After completing a series of Telegram message operations, the workflow calls the 'Close Session' operation to disconnect the Telegram client session.

Output

JSON

  • 0 - Array containing the result message of the session closure operation, e.g., confirmation that the Telegram account was disconnected.

Dependencies

  • Requires an API key credential for TelePilot API authentication to manage Telegram sessions.

Troubleshooting

  • Common issues include attempting to close a session when no active session exists, which may result in errors or no effect.
  • Errors related to unauthorized access or session already closed will prompt the user to log in again, with guidance to the TelePilot login documentation.
  • If the session is closed unexpectedly or terminated, the node throws an error advising to re-login using the provided guide.

Links

Discussion