From 3ae5e718197063e8f3efab7d62e1583324983e89 Mon Sep 17 00:00:00 2001 From: Bogdan <57633804+bogdan-nikitin@users.noreply.github.com> Date: Thu, 25 Jul 2024 19:02:03 +0300 Subject: [PATCH] Fix url in button * Fixed URL path in the "Open" button at the `demo/sendMessage` endpoint --- examples/web_app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))), ) ] ]