TGPassportAndroidSDK
TGPassportAndroidSDK copied to clipboard
Handling Result
More information is needed than just result ok, at least the telegram id of the user, otherwise, it is not useful at all
I encountered the same problem. Imagine the following algorithm:
- Android app requires authorization;
- User logs in via Telegram and enters all the data;
- Bot gets an update that I process and sign up the user for my service at backend;
- Android app gets just "ok", no info about user logged in, no way to get some data from my backend.
Even though I no longer work at Telegram, I'd like to tell you that this isn't how this works. This isn't just oauth-style thing for logging users in with their Telegram accounts. This is Telegram Passport, for a very limited set of primarily financial services that do KYC checks and stuff like that. I don't think you're supposed to sign users in with this.
Oh. Is there some way to sign in users in Android apps then?