Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with the Telegram API to perform various operations related to Telegram files, messages, chats, users, and groups. Specifically, for the 'File' resource and 'Download File' operation, it downloads a file from Telegram using its file identifier. This is useful for workflows that need to retrieve and process files sent or received via Telegram, such as saving media files, documents, or other attachments for further automation or analysis.

Use Case Examples

  1. Downloading a file sent in a Telegram chat to store it in a cloud storage service.
  2. Automating the retrieval of media files from Telegram channels for content management.
  3. Fetching documents shared in Telegram groups for processing or archival.

Properties

Name Meaning
File ID Identifier of the file to download, required to specify which file to retrieve from Telegram.

Output

JSON

  • file_id - The identifier of the downloaded file.
  • local_path - Local path where the downloaded file is stored.
  • file_size - Size of the downloaded file in bytes.
  • file_name - Name of the downloaded file.

Dependencies

  • Requires an API key credential for Telegram API authentication.

Troubleshooting

  • Common issues include invalid or expired file IDs, which result in errors indicating the file cannot be found or accessed. Verify the file ID is correct and the Telegram session is authenticated.
  • Session-related errors such as 'Unauthorized' or 'A closed client cannot be reused' indicate the Telegram session has expired or been terminated. Re-authenticate using the login process described in the node's documentation.
  • File size limits imposed by Telegram may cause download failures if the file exceeds allowed sizes.
  • Ensure the node has access to the local filesystem path where files are downloaded to avoid file system errors.

Links

  • TelePilot Login Guide - Instructions for logging in and authenticating the Telegram session required for this node.

Discussion