telegram-api
telegram-api copied to clipboard
API Saving Authentication
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 ?
I checked sources and used setAuthKey and getAuthKey in AbsApiState. I am not sure if that is the right way to do it.
you need to serialize/unserialize the whole ApiState object when you start/close your app
Can you please send me compiled working code to my email [email protected]? I shall be grateful to you