approveJoinRequests

Approve all join requests. User-only.

Parameters

chatId: ID

The identifier of the chat that contains the join requests.

If specified, only join requests initiated from this invite link will be approved.

Result

void

Syntax

// Required parameters only.
await client.approveJoinRequests(chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.approveJoinRequests(chatId, { inviteLink });