Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Delete Chat

AI-generated

Overview

This node integrates with Telegram via the TelePilot API to perform various chat-related operations. Specifically, the 'Delete Chat' operation allows users to delete a chat dialog by providing the chat ID. This is useful for managing and cleaning up chat dialogs programmatically within automation workflows. For example, a user can automate the deletion of inactive or unwanted chats in their Telegram account.

Use Case Examples

  1. Automate deletion of a specific chat by its ID to keep the chat list organized.
  2. Use in workflows that manage Telegram chats by removing chats after certain conditions are met, such as after archiving messages.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be deleted. This is required to specify which chat dialog to delete.

Output

JSON

  • success - Indicates whether the chat deletion was successful (true if deleted).

Dependencies

  • Requires an API key credential for TelePilot API to authenticate and interact with Telegram.

Troubleshooting

  • Common issues include 'Client not initialized' errors if the user is not logged in. The node requires a valid Telegram session to perform operations.
  • Errors related to invalid chat IDs or permissions may occur if the chat does not exist or the user lacks rights to delete it.
  • Session closure or unauthorized errors indicate the need to re-authenticate or login again via the provided guide link.

Links

Discussion