diff --git a/CHANGES/1546.bugfix.rst b/CHANGES/1546.bugfix.rst new file mode 100644 index 00000000..a98d5904 --- /dev/null +++ b/CHANGES/1546.bugfix.rst @@ -0,0 +1 @@ +Fixed URL path in the "Open" button at the "demo/sendMessage" endpoint in the web_app example. diff --git a/examples/web_app/routes.py b/examples/web_app/routes.py index bd913a12..a1f2da3d 100644 --- a/examples/web_app/routes.py +++ b/examples/web_app/routes.py @@ -43,7 +43,7 @@ async def send_message_handler(request: Request): [ InlineKeyboardButton( text="Open", - web_app=WebAppInfo(url=str(request.url.with_scheme("https"))), + web_app=WebAppInfo(url=str(request.url.with_scheme("https").with_path("demo"))), ) ] ]