Downloading files from telegram with fileid fails for files with size of 2GB.
How would I configure n8n to allow such large files to be downloaded?
I already set the environment variables to 8192MB and file system to ensure this is not a limitation in n8n.
Hi @cmprmsd, I am sorry you are having trouble. Can you confirm where exactly you are seeing the 400 request, and ideally share a screenshot? Is this coming from n8n or is it just an error displayed by n8n but coming from the Telegram infrastructure?
NodeApiError: Bad request - please check your parameters
at Object.apiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Telegram/GenericFunctions.js:107:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Telegram/Telegram.node.js:1723:36)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:698:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:53
This is indeed an error coming from Telegram and I am not aware of a workaround unfortunately. n8n uses the Telegram Bot API, which limits the file size that can be processed programmatically. According to the official Telegram docs it should be 20 MB:
For the moment, bots can download files of up to 20MB in size.
So it appears that Telegram has quietly increased this limit to 2GB, but not lifted it completely unfortunately.