Skip to content
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

0Mb downloaded files #473

Open
jkowalski995 opened this issue Nov 2, 2023 · 4 comments
Open

0Mb downloaded files #473

jkowalski995 opened this issue Nov 2, 2023 · 4 comments
Labels

Comments

@jkowalski995
Copy link

Describe the bug
When downloading files a lot of them approx 70% is downloaded with size 0. However downloading them manually do not serve aany error.

To Reproduce

chat_id: telegram_chat_id
last_read_message_id: 0
media_types:
- document
file_formats:
  document:
  - all

Python Version
Python: [3.10.2]

OS:
The OS and its version: Kali Linux

@azerfr2
Copy link

azerfr2 commented Nov 3, 2023

i have the same problem , it randomly at 0 bytes then some file were correctly downloaded .any way to have a logging with more errors details ?

@jkowalski995
Copy link
Author

I need to do some testing but I believ that 0 bytes are related to files which are reposted from priv channel

@azerfr2
Copy link

azerfr2 commented Nov 3, 2023

 ERROR    Telegram says: [400 FILE_REFERENCE_EXPIRED] - The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context (caused by "upload.GetFile")                                                                                                                 client.py:1021
                    Traceback (most recent call last):
                      File "C:\w\net-crea\Python_3_10_11\lib\site-packages\pyrogram\client.py", line 891, in get_file

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity in the past 45 days. It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants