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

getting error 401 AUTH_KEY_UNREGISTERED when using secret file #16

Closed
caio2k opened this issue May 10, 2016 · 3 comments
Closed

getting error 401 AUTH_KEY_UNREGISTERED when using secret file #16

caio2k opened this issue May 10, 2016 · 3 comments

Comments

@caio2k
Copy link
Contributor

caio2k commented May 10, 2016

Hi there,

I've been using the testApp to develop my client and maybe I'm missing something. When I register following the USAGE file I manage to connect and see the messages. Then I save the secretfile and log out. However when I use the secretfile to connect again, I get 401 AUTH_KEY_UNREGISTERED errors. I'm not sure it is related with a bad understanding or due to QT4.7 incompatibility. Did you see this behavior already?

Thanks for your time!

@Kaffeine
Copy link
Owner

Then I save the secretfile and log out.

"Log out" is https://core.telegram.org/method/auth.logOut . It terminates session and "unregister" the auth key.

If you want to set own status to offline, then use CTelegramCore::setOnlineStatus() method instead. The method calls https://core.telegram.org/method/account.updateStatus .

@Kaffeine
Copy link
Owner

Currently there is an issue with authorization process, which I'm going to fix soon. If you can "see the messages" after authentication, then the issue doesn't affect you.

@Kaffeine
Copy link
Owner

I landed a lot of authentication-related fixes and this issue probably fixed months ago.
Feel free to reopen if you still have the issue on recent TelegramQt.

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

No branches or pull requests

2 participants