Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.09k stars 237 forks source link

Change to pyrogram #195

Closed poliandro closed 1 year ago

poliandro commented 1 year ago

Telethon is slow when uploading files because it does so by uploading the file chunks sequentially, rather than in parallel, how the pyrogram does. The telethon developer has no interest in changing this. Uploading with pyrogram is 5–10 times faster than using telethon.

Also, the pyrogram code is much simpler and easier to work with. Rather than using hacks like fastTelethon, this solution is an alternative to #140 and resolves the low speed by default.

SoravKu commented 1 year ago

@poliandro There is a repo similar to telegram-upload that uses program.

Nekmo commented 1 year ago

Thanks for the suggestion, but the change to pyrogram is too big. telegram-upload has too many dependencies on telethon. I'm going to try the solution in #140 first, if it doesn't work I could switch to pyrogram.

Thanks!

poliandro commented 1 year ago

@SoravKu Thank you for the suggestion. @Nekmo I'm glad you work again on this project. I will wait for next version, with faster speed.

Nekmo commented 1 year ago

@poliandro you are welcome :) I hope I can have it done soon.

Nekmo commented 1 year ago

Speed improvements have been implemented in Telegram-upload v0.7.0. You can see the benchmarks with the improvement in: https://docs.nekmo.org/telegram-upload/upload_benchmark.html