Dineshkarthik/telegram_media_downloader

0Mb downloaded files

jkowalski995 opened this issue · 4 comments

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

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 ?

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

 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

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.