Skip to content

Commit

Permalink
chore: approve, reject, list request group docs (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zennn08 authored Jun 13, 2023
1 parent 7380067 commit b374d95
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/tutorial-extras/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,17 @@ sidebar_position: 2
console.log("joined to: " + response);
```
Of course, replace `xxx` with invitation code.
## To get list request join
``` ts
const response = await sock.groupRequestParticipantsList("[email protected]")
console.log(response)
```
## To approve/reject request join
``` ts
const response = await sock.groupRequestParticipantsUpdate(
"[email protected]", // id group,
["[email protected]", "[email protected]"],
"approve" // replace this parameter with "reject"
)
console.log(response)
```

0 comments on commit b374d95

Please sign in to comment.