send_chat_join_request_web_app()

Client.send_chat_join_request_web_app()

Open a WebApp for the user who sent a join request.

Shortcut for answer_chat_join_request_query() with action="web_view".

Usable by Users Bots
Parameters:
  • query_id (int) – Guard-bot query ID from query_id.

  • url (str) – HTTPS URL of the WebApp to open for the joining user.

Returns:

bool – True on success.

Example

@app.on_chat_join_request()
async def handler(client, request):
    if request.query_id:
        await client.send_chat_join_request_web_app(
            request.query_id,
            url="https://example.com/captcha"
        )