-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
GetChatHistory.get_chat_history() got an unexpected keyword argument 'reverse' #453
Comments
After
|
Ran into the same issue and the cause it a change in the pyrogram library. Solution seems to be to just remove the argument reverse (and it's value of True) from media_downloader.py line 313. "The messages are returned in reverse chronological order." by default since that change. |
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. |
Describe the bug
exception on py .\media_downloader.py
To Reproduce
Python Version
Python: 3.11.4
pyrogram-2.0.106
OS:
Windows 10
WindowsVersion
1809
Logs
Traceback (most recent call last):
File "E:\tmd\x\media_downloader.py", line 376, in
main()
File "E:\tmd\x\media_downloader.py", line 360, in main
updated_config = asyncio.get_event_loop().run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Exey\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "E:\tmd\x\media_downloader.py", line 313, in begin_import
messages_iter = client.get_chat_history(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Exey\AppData\Local\Programs\Python\Python311\Lib\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'
The text was updated successfully, but these errors were encountered: