vue.js - How can i send an url on telegram and avoid the default telegram in app browser to open? - Stack Overflow

admin2025-04-18  2

I'm writing this because i created an spa website using vue. This website uses the Telegram Login Widget but now i'm having a problem. If i send this website on telegram to a friend (with iOS) and the friend uses the in app telegram browser the login doesn't work. If he copy and paste the link on safari than it works. I'm trying to find a way so that the link is automatically opened in safari or a way to fix the telegram login error. I found some ways to detect this in app browser but i don't want to block the users that come from the telegram browser, i'd like to fix the error or simply open it on the safari/chrome external browser.

From what i found only bots can send html code with target="_blank" so that it opens externally but i couldn't find a way to make this work on a normal telegram client.

Another method could be to find a way to debug the actual error that's happening and try to fix it but i couldn't find a way to do that. (I tried creating a js proxy to proxy all the window.onerror events but i only got Script error since the telegram login loads some js files without the crossorigin="anonymous"

Thanks

转载请注明原文地址:http://anycun.com/QandA/1744958786a90040.html