Kosat/telegram-messages-dump

ERROR:Uncaught exception occured. 'Chat' object has no attribute 'username'

Teoretic6 opened this issue · 2 comments

Hello!

I get this strange error and can't figure out what is causing it:
"ERROR:Uncaught exception occured. 'Chat' object has no attribute 'username'"

I successfully got and entered verification code from Telegram.
I'm using multi-word name of the chat.

Python 3.6.5
Linux Mint 18.3 (if it matters)

screenshot from 2018-07-21 22-30-56

Any ideas on what is causing it?

Found an issue in code after debugging
screenshot from 2018-07-21 23-37-14

telegram_dumper.py, line 192

The issue is that group chat objects has no such field as "username", only dialogs with users have them.

Here's the example of the object of dialog with user:
screenshot from 2018-07-22 00-29-16

It contains "username" field.

Will PR on this soon :)

Kosat commented

Thank you. I've accepted your PR and fixed the Travis MacOS build.
Cheers!