NikolayLiber / chatbro-plugin

5 stars 0 forks source link

Authenticate telegram user within iOS app / web view? #1

Open dsldsl opened 6 years ago

dsldsl commented 6 years ago

Hello. First off - thank you for this tool!

I am looking to use chatbro within a web view inside an iOS app. I'm working on figuring out the redirect so that when I send a user to authenticate with telegram and they do so, I want to send them back to my app and have them authenticated in the chat. This seems like a common use case - is this something that should be able to work? I'm hitting some roadblocks with the redirect.

What I see now is that to do the telegram authentication it sends me to telegram app, and then I message with your bot to approve, and then it opens a web view within telegram and I am logged in. Is it possible to go back to the other app webview (or back to safari) and still be authenticated?

It seems I can do this if the link that the "chatbro bot" sends to the user inside the telegram app is opened within the webview that I want to be authenticated in. Is there a way to do that? (If the user copies and pastes the link over, that seems to work.)

THANK YOU!

dsldsl commented 6 years ago

(I also want to force telegram authentication.)

dsldsl commented 6 years ago

Can we customize the message / link that chatbro bot sends to the user within telegram? or re-direct that url back into our app?