Comments (11)
In one of my laptops, for example, Telethon library version is 1.12.0, and is limited in ~/.local/lib/python3.6/site-packages/telethon/utils.py to 1572864000 bytes (just search for 'File size too large' in that file)
If you need to download larger files, change that limit in your Telethon installation, or (much better) update the library version.
from telegram-download-daemon.
If I try to download files up to 1500MB the script works fine
from telegram-download-daemon.
Size is limited by the Telethon library my script uses, and of course, Telegram.
Currently it is 2097152000 bytes.
Check it here https://github.com/LonamiWebs/Telethon/blob/319b6283a9367d4722fe1432118b9e93806e7ee1/telethon/utils.py#L1351
from telegram-download-daemon.
Well... telethon library supposedly can download files up to 2000MB (2097152000 bytes) or what is the same the limit that telegram has (or so I think)... so, how can I make it work with a file of 1990MB (2086666240 bytes)? Sorry but I don't understand why it doesn't work with this file... with files less than 1500MB it works fine
from telegram-download-daemon.
Hi,
I was going to post about the same issue. I just queded 2 files and they werent there when i got home. Looked at the log and saw that file size error. I can download them no problem with telegram official app. Can't you remove that limit somehow? I think telegram itself dont let you upload files larger than it supports, right? so if there is a file link on telegram it's because its within the file size limit.
from telegram-download-daemon.
As I said before, that limit is not in my script. It is in the Telethon library. Perhaps in your installation this Telethon library has got a lower limit (Lonami changed it on July 2020: LonamiWebs/Telethon#1499)
from telegram-download-daemon.
I would suggest to use a command like pip3 show telethon
to check library version and location (If you are not using a Dockerized version)
from telegram-download-daemon.
Thank you very much for the info!!! Everything you told helped me to solve it, basically I had to reinstall the telethon library because it had the old 1.5gb limit. I did this with the command:
pip3 install --force-reinstall telethon
And now it works fine with 2GB files
from telegram-download-daemon.
Hello again, I have done the process again installing the dependencies in case I had done something wrong and when installing them with pip3 install -r requirements.txt
the utils.py file has the old limit again. It is resolved as I said before (pip3 install --force-reinstall telethon
) but just in case someone else asks ... Thank you very much again for your time and for this great script !!!
from telegram-download-daemon.
Thank you for your answer, maybe you could update requeriments.txt as its possible to just use the latest telethon library.
from telegram-download-daemon.
Done!
from telegram-download-daemon.
Related Issues (20)
- proxy unavailable HOT 2
- Error download big files HOT 1
- Please HELP! Error while installing "cffi" HOT 1
- Feature Request: automatically download to directory named after Channel HOT 1
- Error: [Errno 2] No such file or directory - after download finish HOT 1
- Need help with the interactig part of docker compose HOT 13
- Request was unsuccessful 6 time(s) HOT 1
- command to check the queue HOT 1
- Option to run this as a service? HOT 1
- I get the this Error: [Errno 17] File exists: '/downloads' HOT 3
- Problem with authentication running docker in NAS HOT 10
- Error when using the "workers" parameter with a large download list HOT 1
- telethon.network.mtprotostate:Server sent a very new message with ID xyz HOT 3
- a better progress bar on telegram
- download only file with .pdf extension
- RPCError in FileRequest HOT 13
- Docker compose first run failed HOT 4
- Do not use api_id 611335, or any official telegram client api id that already causing my account ban now. HOT 1
- Docker: Unable to persist session to file HOT 1
- How do I configure destination path? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-download-daemon.