Closed bertploeger closed 5 years ago
I now temprorary fixed it by modifying line 408 in /usr/lib/python3.6/site-packages/telethon/client/downloads.py to:
f.write(str(result))
Instead of doing str(result)
, removing .encode('utf-8')
would have been a better manual fix.
Anyway the correct fix was opening the file in 'b'
inary mode because all media can be "arbitrary bytes" and contacts are no exception.
Thanx for the quick response. I am very happy with the library and the good work you did!
Hi,
I use the latest telethon 1.6.2, which i think is the latest currently. When i try to download_media() a contact an error is thrown:
The code i use is this;
What could be wrong?
Regards, Bert