i am searching for a way so i can download large files for example 1.2gb mp4 files from telegram with “get file” node in n8n.
but since n8n use bots to interact with telegram and bots have limit 20MB i can’t do it with “get file” telegram node in n8n.
here is my workflow (download a file i sent to a telegram bot and get it and upload it on youtube) but i get can proceed from “get file” node.
Hey Michel, ahh yeah looks like you hit that 20MB telegram bot limitation. That’s not a limitation with n8n but Telegram. I think what I would do here is use Google Drive to get the file instead of Telegram and use a code node to extract the file ID from Telegram.
So the files would be uploaded to Google Drive or where ever you want to store them. Then you can just message the file URL to the telegram trigger and it will extract the file ID, grab the file, download it, and upload it to YouTube.
Something like this:
Telegram Trigger → Code Node (Extract URL from message) → Google Drive node → Upload to YouTube
yeah i wish that 20mb remove or they add some other way for it. thank you for your suggest i should consider it. i should upload directly from google drive in this case. i wanted to upload files when a user send it to a bot telegram and it directly go to youtube. thanks again.
No problem! You could try to pivot and use Discord, Slack, or a messaging service without that 20MB limit.
Hi! There’s a way you can achieve that,
Use the Telegram node “Send Message and Wait for Response” with a custom form to let the user upload the file through your form:
This way, the file will be uploaded to your n8n server, and from there you can process or upload it to YouTube (or do whatever else you need).
interesting. i should test it.
thank you for this idea brother.
we all need to know Evey element uses so we can find these solutions.
Pretty cool! I think he would also have to adjust the form data file size max environment variable to about 2GB to get around the 200MB file size limit.
thanks. can you name that size max environment so i define it on 2gb?

