Available methods

answerChatJoinRequestQuery()

Use this method to process a received chat join request query. Returns True on success.

parameters

parametertyperequireddescription
chat_join_request_query_idstringrequiredUnique identifier of the join request query
result"approve" | "decline" | "queue"requiredResult 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.

bot.ts
import type { AnswerChatJoinRequestQueryParams } from "@yaebal/types";

await bot.api.answerChatJoinRequestQuery({
  chat_join_request_query_id: "...",
  result: "approve",
} satisfies AnswerChatJoinRequestQueryParams);