mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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
This commit is contained in:
parent
a3d6c1615e
commit
2516f32168
2 changed files with 2 additions and 1 deletions
1
CHANGES/1546.bugfix.rst
Normal file
1
CHANGES/1546.bugfix.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fixed URL path in the "Open" button at the "demo/sendMessage" endpoint in the web_app example.
|
||||
|
|
@ -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"))),
|
||||
)
|
||||
]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue