method ApiMethods.approveChatJoinRequest
ApiMethods.approveChatJoinRequest(args: { chat_id: number | string; user_id: number; }): true

Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.

Parameters

args: { chat_id: number | string; user_id: number; }

Return Type

true

Usage

import { type ApiMethods } from "types";