Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with Telegram via the TelePilot API, allowing users to perform various Telegram chat operations programmatically. Specifically, the 'Delete Chat' operation deletes a chat identified by its Chat ID. This node is useful for automating Telegram chat management tasks such as deleting unwanted or obsolete chats. For example, it can be used in workflows to clean up chats after a certain event or condition is met.

Use Case Examples

  1. Automatically delete a chat after a project is completed to keep the chat list clean.
  2. Remove chats that are inactive for a certain period as part of a Telegram maintenance workflow.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be deleted. This is a required string input that specifies which chat the node will delete.

Output

JSON

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

Dependencies

  • Requires an API key credential for the TelePilot Telegram API to authenticate and perform operations.

Troubleshooting

  • Common issues include authentication errors if the Telegram session is not logged in or has expired. The node may throw errors like 'Please login' or 'Unauthorized', indicating the need to re-authenticate using the login flow.
  • Errors such as 'A closed client cannot be reused' suggest the Telegram client session was closed and a new login is required.
  • File or chat permission errors may occur if the bot or user does not have rights to delete the specified chat.

Links

  • TelePilot Login Guide - Instructions on how to authenticate and login to the TelePilot Telegram API, necessary for node operation.

Discussion