Git Product home page Git Product logo

Comments (11)

alfem avatar alfem commented on August 15, 2024 1

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.

loscharlies avatar loscharlies commented on August 15, 2024

If I try to download files up to 1500MB the script works fine
84B12824-F6E6-497E-A080-8BF3A328A760

from telegram-download-daemon.

alfem avatar alfem commented on August 15, 2024

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.

loscharlies avatar loscharlies commented on August 15, 2024

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.

kot7k avatar kot7k commented on August 15, 2024

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.

alfem avatar alfem commented on August 15, 2024

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.

alfem avatar alfem commented on August 15, 2024

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.

loscharlies avatar loscharlies commented on August 15, 2024

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
23CD2FDD-E9E4-420C-9090-72FAE435C36F

from telegram-download-daemon.

loscharlies avatar loscharlies commented on August 15, 2024

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.

kot7k avatar kot7k commented on August 15, 2024

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.

alfem avatar alfem commented on August 15, 2024

Done!

from telegram-download-daemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.