Hi. I'm doing a Telegram Web App, using "telegram-web-app.js" from

API 6.x
The app is done with vue and works fine, opening as it should in Telegram App, after clicking on the Button.
At some point I need to send user to another url, which is not inside of vue app, but on same app domain. Eg vue app is at domain.com/tg and then user clicks on a link (also tried with window.location.hrer..) and go to domain.com/tg/game/win

Problem. Telegram askes user to open url and in a normal browser (not in the app)

With a "normal" html/js page without vue, same link opens inside of telegram.

Any idea?

13 ответов

21 просмотр
Stefan-Wuthrich Автор вопроса

vue app opens in telegram, but when user clicks on link which goes out of telegram app, but is on same domain/path, it wants to open in browser

Stefan Wuthrich
vue app opens in telegram, but when user clicks on...

Yes, I think thats intended. You need to solve this differently. Try js location.replace() maybe

Stefan-Wuthrich Автор вопроса
Poolitzer X
This works fine for me on desktop

On TG Web z version it works for me too. But not on Android app

Stefan Wuthrich
On TG Web z version it works for me too. But not o...

cool, let me throw together a demo and get reports for all clients

Stefan-Wuthrich Автор вопроса

Ok, thats on one side good news :-)

Stefan Wuthrich
Ok, thats on one side good news :-)

maybe web app creates for one list apps. not for big apps. You can add your menu to the inline buttons, and open another links. Thats what i use.

Stefan-Wuthrich Автор вопроса
Poolitzer X
cool, let me throw together a demo and get reports...

wow you can not share web apps in groups wtf thats stupid

Похожие вопросы

Карта сайта