Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Close Chat

AI-generated

Overview

This node operation allows closing a chat in Telegram by its chat ID. It is useful for managing chat sessions programmatically, such as ending a chat session when it is no longer needed or to clean up active chats in an automated workflow. For example, a user can automate closing inactive chats or manage chat lifecycle in customer support scenarios.

Use Case Examples

  1. Automatically close a chat after a support ticket is resolved.
  2. Close a chat session to free up resources or reset chat state in a bot workflow.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be closed. This is required to specify which chat session to close.

Output

JSON

  • success - Indicates whether the chat was successfully closed.

Dependencies

  • Requires an API key credential for Telegram API access.

Troubleshooting

  • Ensure the chat ID is valid and corresponds to an existing chat.
  • The node requires a valid logged-in Telegram client session; if the session is closed or unauthorized, re-login is necessary.
  • Common errors include session closure or unauthorized access, which require re-authentication as per the provided guide link.

Links

Discussion