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

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

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

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