-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files are so slow to download that File_Reference is running out of time #4341
Comments
download speed does not exceed 0.3mb |
I think we should add a "workers" parameter to specify the number of workers to download the file. |
I don't have plans to complicate the download code further. Not in v1. However, the above should refetch the message, if you're using |
Yeah, I'm using message.download_media |
The above commit has not been released yet, though you could try |
Either way it's very slow, also, on importance I rate it 8/10 |
Code that causes the issue
telethon.errors.rpcerrorlist.FileReferenceExpiredError: The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent (caused by GetFileRequest
Expected behavior
telethon.errors.rpcerrorlist.FileReferenceExpiredError: The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent (caused by GetFileRequest
Actual behavior
telethon.errors.rpcerrorlist.FileReferenceExpiredError: The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent (caused by GetFileRequest
Traceback
telethon.errors.rpcerrorlist.FileReferenceExpiredError: The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent (caused by GetFileRequest
Telethon version
last
Python version
3.11.5
Operating system (including distribution name and version)
Windows 10
Other details
No response
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: