Fix url in button

* Fixed URL path in the "Open" button at the `demo/sendMessage` endpoint
This commit is contained in:
Bogdan 2024-07-25 19:02:03 +03:00 committed by GitHub
parent a3d6c1615e
commit 3ae5e71819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))),
)
]
]