Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node interacts with the Telegram API to perform various operations related to Telegram files. Specifically, the 'File' resource with the 'Get' operation allows users to retrieve a file from Telegram by its file ID. Users can choose to download the file or just get its metadata. This is useful for workflows that need to access or process files sent or received via Telegram, such as images, documents, or videos.
Use Case Examples
- Download a file sent in a Telegram chat by specifying its file ID and saving it for further processing.
- Retrieve metadata about a Telegram file without downloading it, for logging or conditional workflow branching.
Properties
| Name | Meaning |
|---|---|
| File ID | The unique identifier of the Telegram file to retrieve. This is required to specify which file to get. |
| Download | Boolean flag indicating whether to download the file content or just retrieve file metadata. |
| Additional Fields | Optional additional parameters for the file retrieval, such as specifying the MIME type when downloading the file. |
Output
Binary
Contains the downloaded file data if the 'Download' option is true.
JSON
result- The JSON response from Telegram API containing file metadata and details.
Dependencies
- Telegram API credentials (API token) are required to authenticate requests to Telegram.
Troubleshooting
- Ensure the provided File ID is correct and corresponds to an existing file on Telegram servers.
- If downloading the file, make sure the node has access to write binary data and the file name is properly set either in the binary property or via the 'File Name' additional field.
- Check network connectivity and Telegram API availability if requests fail.
Links
- Telegram Bot API - getFile Method - Official Telegram API documentation for retrieving files by file ID.