telegram-api icon indicating copy to clipboard operation
telegram-api copied to clipboard

API Saving Authentication

Open anvaya opened this issue 10 years ago • 3 comments

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 ?

anvaya avatar Jun 26 '14 14:06 anvaya

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

jmoral avatar Jul 21 '14 11:07 jmoral

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

alexkvak avatar Sep 05 '14 13:09 alexkvak

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

Raakh avatar Sep 19 '15 19:09 Raakh