Open onsails opened 5 years ago
You installed telethon==1.5
and the library only works with telethon~=1.4.3
, but I believe we need to push the change to PyPi.
Even when changing to telethon 1.4.3 I still get an error
2019-01-02 16:22:09,172 - telegram_export.downloader - INFO - Getting participants... 2019-01-02 16:22:09,580 - asyncio - ERROR - Task exception was never retrieved future: <Task finished coro=<Downloader._media_consumer() done, defined at /usr/local/lib/python3.5/dist-packages/telegram_export/downloader.py:305> exception=OSError(22,'Invalid argument')> Traceback (most recent call last): File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/usr/local/lib/python3.5/dist-packages/telegram_export/downloader.py", line 311, in _media_consumer bar) File "/usr/local/lib/python3.5/dist-packages/telegram_export/downloader.py", line 301, in _download_media progress_callback=progress File "/home/tlan/.local/lib/python3.5/site-packages/telethon/client/downloads.py", line 212, in download_file f = open(file, 'wb') OSError: [Errno 22] Invalid argument: '/mnt/c/Temp/Telegram/usermedia/November Sierra Delta Hotel Papa/photo/2018-10-11 19:14:52+00:00.60.jpg'
Looks like the filename sanitisation bug. By the way, the Telethon version specifier is now on PyPI, so that shouldn't happen again.