Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with Telegram via the TelePilot API, enabling automation and interaction with Telegram accounts. Specifically, the File - Get Remote File operation allows users to download a remote file from Telegram by specifying its unique remote file identifier.

Common scenarios where this node is beneficial include:

  • Automatically retrieving files shared in Telegram chats for further processing or storage.
  • Integrating Telegram file downloads into broader workflows, such as saving media to cloud storage or triggering other automations based on received files.
  • Building bots or services that need to access Telegram-hosted files programmatically.

Example use case: A workflow that listens for new messages containing files in a Telegram chat, then uses this node to download those files for archival or analysis.

Properties

Name Meaning
File ID Identifier of the remote Telegram file to download. This is a string representing the file's unique remote ID.

Output

The node outputs an array of JSON objects representing the downloaded file information returned by the TelePilot API. The exact structure depends on the Telegram API response but typically includes metadata about the file such as file path, size, type, and possibly a local path if the file was downloaded.

If the node supports binary data output (not explicitly shown here), it would represent the actual file content in binary form for further use in n8n workflows.

Dependencies

  • Requires a valid Telegram API authentication credential (an API key/token) configured in n8n.
  • Depends on the TelePilotNodeConnectionManager service to manage Telegram client sessions and API calls.
  • The node internally uses the TelePilot API client to invoke Telegram methods.
  • For file operations, local filesystem access may be required if downloading files locally.

Troubleshooting

  • Error: "Please login"
    Occurs if the Telegram session is not authenticated. Resolve by performing the login operation using the ChatTrigger node or the login commands described in the TelePilot documentation.

  • Error: "A closed client cannot be reused"
    Indicates the Telegram client session was closed or expired. Re-login is necessary.

  • Error: "Unauthorized"
    The provided credentials are invalid or expired. Check and update the Telegram API credentials.

  • File Not Found or Invalid File ID
    Ensure the remote_file_id is correct and the file still exists on Telegram servers.

  • Network or API Errors
    May occur due to connectivity issues or Telegram API limits. Retry or check network status.

Links and References

Discussion