Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Login → Close Session

AI-generated

Overview

This node operation closes the current Telegram session associated with the provided API credentials. It is useful for securely disconnecting a Telegram account from the node, ensuring that the session is terminated and no further actions can be performed until a new login is established. A practical example is when a user wants to log out from their Telegram account within an automation workflow to prevent unauthorized access or to switch accounts.

Use Case Examples

  1. A user triggers the 'Close Session' operation to disconnect their Telegram account after completing a series of automated messaging tasks.
  2. An automation workflow includes a step to close the Telegram session to ensure security after sending sensitive information.

Output

JSON

  • 0 - Confirmation message indicating the Telegram account has been disconnected.

Dependencies

  • Requires an API key credential for Telegram API authentication.

Troubleshooting

  • If the session was already closed or terminated, the node throws an error prompting the user to log in again.
  • Unauthorized errors indicate that the session is invalid or expired, requiring re-authentication.
  • Users should ensure the correct API credentials are provided to avoid connection issues.

Links

Discussion