I’m trying to implement a Web App in my Telegram Bot, but I have a problem.
My web app doesn’t work in Telegram, but everything works fine in any browsers. Moreover, everything worked fine when I created the "Hello World" test application, but when I added more functionality, I get a blank page.
I tried debugging in the way described in the documentation, but I found absolutely no errors. I see that the resources are simply loaded and nothing happens further, as if the js is not running at all.
I don’t understand the reason at all and where to look for it in my case…
Any help is welcome
2
Answers
So, I found the problem.
I generated links with a double slash, for example -
https://example.com//some/path
. Because of this, the router did not recognize it correctly. In the end, I just corrected the generation of links, and also fixed the router so that it could understand such links.I had a problem where the webpage does not open inside the telegram bot, but opens in browser. And I am able to fix it.