Download File
AI-generatedSummary
Download a Telegram file into n8n binary data.
Inputs
- fileIdSource (required) — Whether to detect the file ID from the incoming Telegram update (auto) or use a manually supplied file ID (manual).
- fileId — Telegram file ID to download. Required when fileIdSource is set to manual.
- outputBinaryPropertyName (required) — Name of the output binary field that will contain the downloaded file. Defaults to 'data'.
- downloadOptions — Optional overrides for the downloaded file's name and MIME type.
Output shape
Per input item: an object with a JSON field containing the Telegram file metadata (from getFile) and a binary field whose name matches outputBinaryPropertyName holding the downloaded file data.
If fileIdSource is 'auto', the node inspects the incoming item's JSON for a supported Telegram file (document, video, audio, voice, animation, or the largest photo) and uses its file_id. If no file is found, the node throws an error.