telegram_media_downloader icon indicating copy to clipboard operation
telegram_media_downloader copied to clipboard

0Mb downloaded files

Open jkowalski995 opened this issue 1 year ago • 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

jkowalski995 avatar Nov 02 '23 23:11 jkowalski995

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 ?

azerfr2 avatar Nov 03 '23 17:11 azerfr2

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

jkowalski995 avatar Nov 03 '23 17:11 jkowalski995

 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

azerfr2 avatar Nov 03 '23 18:11 azerfr2

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[bot] avatar Mar 17 '24 11:03 stale[bot]