Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node acts as a personal Telegram assistant, enabling interaction with the Telegram API to perform various chat-related operations. It is particularly useful for automating Telegram workflows such as retrieving chat details, sending messages (text, photo, video, audio, files), managing chats and members, and accessing message history.

For the Chat - Get Chat operation specifically, the node fetches detailed information about a particular chat by its ID. This can be used in scenarios where you want to retrieve metadata or status of a chat, for example, to monitor group info or verify chat existence before sending messages.

Practical examples:

  • Fetching chat details to display in a dashboard.
  • Validating chat IDs before performing bulk messaging.
  • Integrating Telegram chat data into CRM or support systems.

Properties

Name Meaning
Chat ID The unique identifier of the chat to retrieve information for. Example: "122323".

Output

The output is a JSON array containing the response from the Telegram API for the requested chat. The structure corresponds to Telegram's chat object, which typically includes fields like chat ID, type (private, group, supergroup, channel), title, photo, permissions, and other metadata describing the chat.

No binary data is output for this operation.

Example output snippet (simplified):

{
  "id": 122323,
  "type": "group",
  "title": "My Group Chat",
  "photo": { /* chat photo info */ },
  "permissions": { /* chat permissions */ },
  ...
}

Dependencies

  • Requires an API key credential for authenticating with the Telegram API.
  • Uses an internal connection manager to handle Telegram client sessions.
  • The node depends on the Telegram CoPilot API and requires proper login/authentication before executing chat operations.
  • No additional external services are required beyond Telegram itself.

Troubleshooting

  • Not logged in / Unauthorized errors: The node requires a valid Telegram session. If you see errors indicating unauthorized access or closed client sessions, ensure you have completed the login process using the appropriate login operation (e.g., via phone number and code).
  • Invalid Chat ID: Providing an incorrect or non-existent chat ID will result in errors or empty responses. Verify the chat ID before use.
  • Session closed or terminated: If the Telegram session expires or is closed, re-login is necessary. Follow the guide at https://telepilot.co/login-howto.
  • Continue On Fail: If enabled, the node will return error details in the output instead of stopping execution, which can help in debugging.

Links and References

Discussion