expectocode / telegram-export

Export Telegram chat data and history
Mozilla Public License 2.0
460 stars 95 forks source link

dumper.py - 'Document' object has no attribute 'thumb' #105

Closed ApexLead closed 5 years ago

ApexLead commented 5 years ago

Whenever I run the script it creates a database and actually dumps messages for a like a minute, and then crushes with the following error: File "/usr/local/lib/python3.6/dist-packages/telegram_export/dumper.py", line 537, in dump_media row['thumbnail_id'] = self.dump_media(doc.thumb) AttributeError: 'Document' object has no attribute 'thumb'

I dont even need media downloaded, is there a way to ignore / fix it?

Lonami commented 5 years ago

Downgrade Telethon to 1.4.3.

ApexLead commented 5 years ago

How do I do that?

Lonami commented 5 years ago

pip install telethon==1.4.3

ApexLead commented 5 years ago

Thanks! It made it work for longer, but when it got to 97% it crushes with another error: File "/usr/local/lib/python3.6/dist-packages/telegram_export/downloader.py", line 507, in start req.offset_date = min(m.date for m in history.messages) TypeError: '<' not supported between instances of 'NoneType' and 'dateime.datetime'

Any idea how to fix it?

Lonami commented 5 years ago

Please file a new issue to address that.

ApexLead commented 5 years ago

Sorry didn't want to cause too many problems, added a new issue.