approveJoinRequests
Approve all join requests. USER-ONLY
Parameters
The identifier of a chat with the join requests.
inviteLink?: string
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 });