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
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { AnswerChatJoinRequestQueryParams } from "@yaebal/types";
await bot.api.call<boolean>("answerChatJoinRequestQuery", {
chat_join_request_query_id: "...",
result: "approve",
} satisfies AnswerChatJoinRequestQueryParams);official Bot API docs: https://core.telegram.org/bots/api/#answerchatjoinrequestquery