Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Get Chats

AI-generated

Overview

This node interacts with the Telegram API to perform various chat-related operations under the 'Chat' resource, specifically the 'Get Chats' operation. It retrieves a list of Telegram dialogs (chats) for the authenticated user, allowing workflows to access and process chat data from Telegram. This is useful for automating chat management, monitoring conversations, or integrating Telegram chat data into other systems.

Use Case Examples

  1. Retrieve all Telegram chats for a user to analyze chat activity.
  2. Fetch chats to display recent conversations in a dashboard.
  3. Use chat data to trigger further automation based on chat content or metadata.

Output

JSON

  • ``
    • id - Unique identifier of the chat/dialog.
    • title - Title or name of the chat/dialog.
    • entity - Detailed entity object representing the chat, user, or channel.
    • date - Timestamp of the last message or activity in the chat.
    • unread_count - Number of unread messages in the chat.
    • last_message - The last message object in the chat/dialog.

Dependencies

  • Requires Telegram API credentials (API ID, API Hash, phone number) for authentication.

Troubleshooting

  • Ensure the Telegram account is logged in and the session is active; otherwise, the node will throw errors indicating the need to login.
  • Common errors include session closure or unauthorized access, which require re-authentication.
  • If the node returns empty or no chats, verify that the Telegram account has active dialogs and the credentials are correct.

Links

Discussion