Dineshkarthik / telegram_media_downloader

Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.17k stars 364 forks source link

Bug #499

Closed notylo closed 15 minutes ago

notylo commented 2 weeks ago

Traceback (most recent call last): File "C:\Windows\System32\telegram_media_downloader-2.0.2\media_downloader.py", line 376, in main()


  File "C:\Windows\System32\telegram_media_downloader-2.0.2\media_downloader.py", line 360, in main
    updated_config = asyncio.get_event_loop().run_until_complete(
        begin_import(config, pagination_limit=100)
    )
  File "C:\Users\**\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 721, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "C:\Windows\System32\telegram_media_downloader-2.0.2\media_downloader.py", line 313, in begin_import
    messages_iter = client.get_chat_history(
        config["chat_id"], offset_id=last_read_message_id, reverse=True
    )
  File "C:\Users\**\AppData\Local\Programs\Python\Python313\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'