sendChatJoinRequestWebApp()
Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
chat_join_request_query_id | string | required | Unique identifier of the join request query |
web_app_url | string | required | An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps |
returns
boolean
usage in yaebal
sendChatJoinRequestWebApp is directly typed on Api — call it straight off bot.api.
import type { SendChatJoinRequestWebAppParams } from "@yaebal/types";
await bot.api.sendChatJoinRequestWebApp({
chat_join_request_query_id: "...",
web_app_url: "...",
} satisfies SendChatJoinRequestWebAppParams);official Bot API docs: https://core.telegram.org/bots/api/#sendchatjoinrequestwebapp