answerChatJoinRequestQuery()
Use this method to process a received chat join request query. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
chat_join_request_query_id | string | required | Unique identifier of the join request query |
result | "approve" | "decline" | "queue" | required | Result of the query. Must be either “approve” to allow the user to join the chat, “decline” to disallow the user to join the chat, or “queue” to leave the decision to other administrators. |
returns
boolean
usage in yaebal
answerChatJoinRequestQuery is directly typed on Api — call it straight off bot.api.
import type { AnswerChatJoinRequestQueryParams } from "@yaebal/types";
await bot.api.answerChatJoinRequestQuery({
chat_join_request_query_id: "...",
result: "approve",
} satisfies AnswerChatJoinRequestQueryParams);official Bot API docs: https://core.telegram.org/bots/api/#answerchatjoinrequestquery