From 8c61e14da9f99dfe94386ed63e4d9d0a2b42cfc9 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Sat, 14 Dec 2024 19:30:42 +0700 Subject: [PATCH] groups features --- content/en/docs/how-to/engines/index.md | 23 ++----------------- content/en/docs/how-to/groups/features.md | 27 +++++++++++++++++++++++ content/en/docs/how-to/groups/index.md | 8 ++++--- 3 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 content/en/docs/how-to/groups/features.md diff --git a/content/en/docs/how-to/engines/index.md b/content/en/docs/how-to/engines/index.md index a7b1a843..561ca8bd 100644 --- a/content/en/docs/how-to/engines/index.md +++ b/content/en/docs/how-to/engines/index.md @@ -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 diff --git a/content/en/docs/how-to/groups/features.md b/content/en/docs/how-to/groups/features.md new file mode 100644 index 00000000..31a8ce8f --- /dev/null +++ b/content/en/docs/how-to/groups/features.md @@ -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._ +**** diff --git a/content/en/docs/how-to/groups/index.md b/content/en/docs/how-to/groups/index.md index 4c455381..2b22f64b 100644 --- a/content/en/docs/how-to/groups/index.md +++ b/content/en/docs/how-to/groups/index.md @@ -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 `123123123123@g.us`. You can get the id in a few ways: - By [handling incoming message webhook]({{< relref "/docs/how-to/receive-messages" >}}).