From 2516f32168ef6e7810c8a3f3b76a64abed1c0a9f Mon Sep 17 00:00:00 2001 From: Bogdan <57633804+bogdan-nikitin@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:21:45 +0300 Subject: [PATCH] Fix web_app example (#1546) * Fix url in button * Fixed URL path in the "Open" button at the `demo/sendMessage` endpoint * Fix web_app example * Add changelog * Restore old changelog --- CHANGES/1546.bugfix.rst | 1 + examples/web_app/routes.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1546.bugfix.rst 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"))), ) ] ]