Download File
AI-generatedSummary
Downloads a Telegram file into n8n binary data. For each incoming item it resolves a Telegram file_id — either detected automatically from an incoming Telegram update or supplied manually — calls Telegram's getFile to get the file path, downloads the bytes, and stores them in the configured output binary field. The JSON output is the getFile result.
Inputs
- Item JSON (required) — One item per file to download. With File ID Source set to Detect From Input, the item JSON must be a Telegram update containing a supported file in message, edited_message, channel_post, edited_channel_post, or callback_query.message. With Enter File ID, the item JSON is not inspected.
Output shape
json + binary
One output item per input item. The JSON is the Telegram getFile result (for example file_id, file_path, file_size). The binary object contains the downloaded file under the Output Binary Field name. If the node is set to continue on fail, a failed item is returned as { error:
} instead of throwing.
Examples
Example 1: Use after a Telegram trigger or webhook to save an incoming document, photo, video, audio, voice message, or animation into n8n binary data for further processing, or to download a specific Telegram file by its file_id.
Downloads a Telegram file into n8n binary data.