Open Romntic opened 1 year ago
@Romntic hi, you should run:
pip3 uninstall pyrogram
pip3 install -r requirements.txt
ok i like ur update put message id front of file download on spesfic folder name of group but i have some notice ... download speed its very slowly some file not downloaded i make specific download for video only disable_syslog:
also in defult download folder in config.yaml coming save_path: E:\github\telegram_media_downloader but i change to save_path: /Users/xxxxx/Downloads/telegram_media_downloader
and some error like this
for example
[21:38:33] ERROR client.py:983
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/cl
ient.py", line 852, in get_file
r = await session.invoke(
^^^^^^^^^^^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
[Previous line repeated 2 more times]
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 374, in invoke
raise e from None
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 361, in invoke
return await self.send(query,
timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 326, in send
raise TimeoutError
TimeoutError
Level 777 Media downloaded with wrong size - media_downloader.py:61
/Users/xxxxx/Downloads/te
egram_media_downloader/sahjt/2022_12/25202 -
IMG_9606.MP4
WARNING Timeout Error occurred when media_downloader.py:278
downloading Message[25202], retrying
after 5 seconds
[21:39:18] ERROR Message[25187]: Timing out after 3 media_downloader.py:284
reties, download skipped.
now in terminal stop on this
[21:39:18] ERROR Message[25187]: Timing out after 3 media_downloader.py:284
reties, download skipped.
[21:39:27] ERROR Message[25203]: Timing out after 3 media_downloader.py:284
reties, download skipped.
[21:39:33] ERROR Message[25202]: Timing out after 3 media_downloader.py:284
reties, download skipped.
see from start
Successfully started (Press Ctrl+C to stop)
[21:45:22] Level 777 Downloading files failed during media_downloader.py:376
last run...
[21:45:43] ERROR
21:54:26] Level 777 Stopped! media_downloader.py:441
Level 777 update config...... media_downloader.py:445
Level 777 Updated last read message_id to media_downloader.py:452
config file, total download 0
11 minute no downloaded
many of file name coming None.mp4 i dont know why
@Romntic hi, if the file name with None,because the server does not storage file name, so we can not get the file name.
But in another project make file name as on group
@Romntic hi, what is meanning?
this https://github.com/Dineshkarthik/telegram_media_downloader its write name of file full name if u can add for that id msg its great
and i have question how i can select download for example start download on msg id 15 to msg id 50
and i have question how i can select download for example
start download on msg id 15 to msg id 50
Download only messages with ids of 10 to 50?
File
"/Users/xxxxxxx/Downloads/t
elegram_media_downloader/media_downl
oader.py", line 370, in begin_import
messages_iter =
client.get_chat_history(
^^^^^^^^^^^^^^^^
^^^^^^^^
File
"/Library/Frameworks/Python.framewor
k/Versions/3.11/lib/python3.11/site-
packages/pyrogram/sync.py", line 53,
in async_to_sync_wrap
coroutine = function(*args,
**kwargs)
^^^^^^^^^^^^^^^^^^^^
^^^^^
TypeError:
GetChatHistory.get_chat_history()
got an unexpected keyword argument
'reverse'
Level 777 update config...... media_downloader.py:445 Level 777 Updated last read message_id to media_downloader.py:452 config file, total download 0