TGPassportAndroidSDK icon indicating copy to clipboard operation
TGPassportAndroidSDK copied to clipboard

Handling Result

Open jayvhaile opened this issue 5 years ago • 3 comments

More information is needed than just result ok, at least the telegram id of the user, otherwise, it is not useful at all

jayvhaile avatar Dec 16 '19 18:12 jayvhaile

I encountered the same problem. Imagine the following algorithm:

  1. Android app requires authorization;
  2. User logs in via Telegram and enters all the data;
  3. Bot gets an update that I process and sign up the user for my service at backend;
  4. Android app gets just "ok", no info about user logged in, no way to get some data from my backend.

lynnporu avatar Jan 31 '20 21:01 lynnporu

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.

grishka avatar Jan 31 '20 21:01 grishka

Oh. Is there some way to sign in users in Android apps then?

lynnporu avatar Feb 01 '20 00:02 lynnporu