approveJoinRequests

Approve all join requests. USER-ONLY

Parameters

chatId: ID

The identifier of a chat with 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 });