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

API Saving Authentication #22

Open
anvaya opened this issue Jun 26, 2014 · 3 comments
Open

API Saving Authentication #22

anvaya opened this issue Jun 26, 2014 · 3 comments

Comments

@anvaya
Copy link

anvaya commented Jun 26, 2014

Hi,

We have observed that with various telegram clients (CLI, Webogram) you can log in, close the apps and come back and you will be still logged in.

There does not seem to be any documentation available on how to do this in the java API. How to achieve this so that we do not have to send SMS code verifications each time ?

@jmoral
Copy link

jmoral commented Jul 21, 2014

I checked sources and used setAuthKey and getAuthKey in AbsApiState. I am not sure if that is the right way to do it.

@alexkvak
Copy link

alexkvak commented Sep 5, 2014

you need to serialize/unserialize the whole ApiState object when you start/close your app

@Raakh
Copy link

Raakh commented Sep 19, 2015

Can you please send me compiled working code to my email [email protected]? I shall be grateful to you

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

4 participants