Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Open Chat

AI-generated

Overview

This node integrates with Telegram via the TelePilot API, allowing users to perform various chat-related operations such as opening a chat, retrieving chat history, sending messages, managing chat members, and more. It is useful for automating Telegram interactions within workflows, for example, opening a specific chat by its ID to fetch or send messages programmatically.

Use Case Examples

  1. Opening a chat by its ID to retrieve chat details or send messages.
  2. Adding members to a Telegram channel or supergroup.
  3. Sending different types of messages (text, photo, audio) to a chat.
  4. Marking a chat as unread or toggling chat states.

Properties

Name Meaning
Chat ID The unique identifier of the chat to perform operations on, such as opening or managing the chat.

Output

JSON

  • success - Indicates if the chat operation was successful (true/false).
  • entity - The chat entity object containing detailed information about the chat, returned when opening a chat.

Dependencies

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

Troubleshooting

  • Common errors include session closure or termination, requiring re-login via the provided guide URL.
  • Unauthorized errors indicate missing or invalid login credentials; users should re-authenticate.
  • Errors related to invalid chat IDs or entity types occur if the chat does not exist or is not accessible.
  • File-related errors when sending media messages may occur if file paths are incorrect or files exceed Telegram's size limits.

Links

Discussion