Skip to content

Commit

Permalink
groups features
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Dec 14, 2024
1 parent aa5144a commit 8c61e14
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 24 deletions.
23 changes: 2 additions & 21 deletions content/en/docs/how-to/engines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,30 +145,11 @@ Read more about

{{< include file="content/en/docs/how-to/channels/features.md" >}}

### Groups
### 👥 Groups
Read more about
[**👥 Groups**]({{< relref "/docs/how-to/groups" >}})

| | WEBJS | NOWEB |
|------------------------------------------------------------------------|:-----:|:-----:|
| `POST /api/{session}/groups` | ✔️ | ✔️ |
| `GET /api/{session}/groups` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}` | ✔️ | ✔️ |
| `DELETE /api/{session}/groups/{id}` | ✔️ | |
| `GET /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | |
| `PUT /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | |
| `GET /api/{session}/groups/{id}/settings/security/messages-admin-only` | ✔️ | |
| `PUT /api/{session}/groups/{id}/settings/security/messages-admin-only` | ✔️ | |
| `POST /api/{session}/groups/{id}/leave` | ✔️ | ✔️ |
| `PUT /api/{session}/groups/{id}/description` | ✔️ | ✔️ |
| `PUT /api/{session}/groups/{id}/subject` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}/invite-code` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/invite-code/revoke` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}/participants` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/participants/add` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/participants/remove` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/admin/promote` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/admin/demote` | ✔️ | ✔️ |
{{< include file="content/en/docs/how-to/groups/features.md" >}}

### Presence
Read more about
Expand Down
27 changes: 27 additions & 0 deletions content/en/docs/how-to/groups/features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
| | WEBJS | NOWEB |
|------------------------------------------------------------------------|:-----:|:-----:|
| `POST /api/{session}/groups` | ✔️ | ✔️ |
| `GET /api/{session}/groups` | ✔️ | ✔️ |
| `GET /api/{session}/groups/join-info` | ✔️ | ✔️ |
| `POST /api/{session}/groups/join` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}` | ✔️ | ✔️ |
| `DELETE /api/{session}/groups/{id}` | ✔️ | |
| `GET /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | |
| `PUT /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | |
| `GET /api/{session}/groups/{id}/settings/security/messages-admin-only` | ✔️ | |
| `PUT /api/{session}/groups/{id}/settings/security/messages-admin-only` | ✔️ | |
| `POST /api/{session}/groups/{id}/leave` | ✔️ | ✔️ |
| `PUT /api/{session}/groups/{id}/description` | ✔️ | ✔️ |
| `PUT /api/{session}/groups/{id}/subject` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}/invite-code` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/invite-code/revoke` | ✔️ | ✔️ |
| `GET /api/{session}/groups/{id}/participants` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/participants/add` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/participants/remove` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/admin/promote` | ✔️ | ✔️ |
| `POST /api/{session}/groups/{id}/admin/demote` | ✔️ | ✔️ |

****

_If you see the feature is not available in the above list, please [create a feature request](https://github.com/devlikeapro/waha/issues/new/choose) or **leave "+1" comment** on the existing one._
****
8 changes: 5 additions & 3 deletions content/en/docs/how-to/groups/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ images: []
weight: 240
---

## Endpoints
See the list of engines [**that support the feature ->**]({{< relref "/docs/how-to/engines#features" >}}).
## Features

Endpoints for groups. Please look at swagger for details.
Here's the list of features that are available by [**🏭 Engines**]({{< relref "/docs/how-to/engines" >}}):

{{< include file="content/en/docs/how-to/groups/features.md" >}}

## Endpoints
- `{session}` - use the session name for Whatsapp instance that you created with `POST /api/session` endpoint
- `{groupId}` - group id in format `[email protected]`. You can get the id in a few ways:
- By [handling incoming message webhook]({{< relref "/docs/how-to/receive-messages" >}}).
Expand Down

0 comments on commit 8c61e14

Please sign in to comment.