Is there a way to launch a webapp with local

url? I mean with like http://127.0.0.1:5000/bot_main.html

6 ответов

15 просмотров

I don't think so, as I believe urls are requested client side, so they don't really know where your PC is, but if for testing purposes and your mobile and PC or server are on same network I think it might work

Alexandr-Pirogov Автор вопроса
Why..?
I don't think so, as I believe urls are requested ...

I wonder if the page is requested by telegram server or a client application directly I tried to launch local bot api in a docker container, used telegram test environment and gave local url to the webapp. But it didn't work. At the same time I made sure the url is available from inside of the docker container. And I inspected the network and the telegram app never even tried to reach this url

Alexandr Pirogov
I wonder if the page is requested by telegram serv...

I don't know but I think they are ran client side, but there may be checks, like it was http not https don't load, or if it's a local IP don't load, I think this might have privacy issues or something

Alexandr-Pirogov Автор вопроса
Why..?
I don't know but I think they are ran client side,...

So how do you prefer to develop a webapp then? Do you place the page somewhere in the web and update it every time you need to run and test your code?

Alexandr-Pirogov Автор вопроса
Why..?
I didn't read that much into it

Ok, thank you very much I'll try to find some way to do it

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

Карта сайта