Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Teoretic6 opened this issue Jul 21, 2018 · 2 comments · Fixed by #18
Closed

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

Teoretic6 opened this issue Jul 21, 2018 · 2 comments · Fixed by #18

Comments

@Teoretic6
Copy link
Contributor

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?

@Teoretic6
Copy link
Contributor Author

Teoretic6 commented Jul 21, 2018

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 :)

@Teoretic6 Teoretic6 mentioned this issue Jul 21, 2018
@Kosat Kosat closed this as completed in #18 Jul 22, 2018
@Kosat
Copy link
Owner

Kosat commented Jul 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants