Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Delete Chat

AI-generated

Overview

This node operation deletes a specified chat in Telegram using the Telegram CoPilot API. It is useful for automating chat management tasks such as removing unwanted or obsolete chats from a user's Telegram account.

Use Case Examples

  1. Automatically delete a chat by its ID after a certain event or condition is met.
  2. Clean up chats in bulk by iterating over chat IDs and deleting them programmatically.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be deleted.

Output

JSON

  • _ - The response object from the Telegram API after deleting the chat, typically containing status or confirmation details.

Dependencies

  • Requires an API key credential for Telegram CoPilot API authentication.

Troubleshooting

  • If the node throws an error 'A closed client cannot be reused, create a new Client', it means the Telegram session was closed or terminated. The user should log in again using the login process.
  • An 'Unauthorized' error indicates the session is not authenticated. The user should re-authenticate by logging in again.
  • Ensure the Chat ID provided is valid and the authenticated user has permission to delete the chat.

Links

Discussion