From 30aacc8946604b36ddee47a6761d9c6001631708 Mon Sep 17 00:00:00 2001 From: allburov Date: Wed, 22 Mar 2023 19:12:59 +0700 Subject: [PATCH] [core] Fix features --- docs/site/content/en/docs/help/changelog.md | 6 ++-- .../en/docs/how-to/receive-messages/index.md | 4 +-- .../en/docs/how-to/send-messages/index.md | 6 ++-- .../content/en/docs/overview/introduction.md | 29 +++++++++---------- 4 files changed, 21 insertions(+), 24 deletions(-) diff --git a/docs/site/content/en/docs/help/changelog.md b/docs/site/content/en/docs/help/changelog.md index 47c8692d..04a4c0bb 100644 --- a/docs/site/content/en/docs/help/changelog.md +++ b/docs/site/content/en/docs/help/changelog.md @@ -34,12 +34,12 @@ toc: true ## 2022.11 **Please test changes in test environment before update production!!** -### Engine ![](/images/versions/core.png) ![](/images/versions/plus.png) +### Engine ![](/images/versions/core.png) 1. WAHA has changed its underlying engine from Venom to Whatsapp Web.JS. It might change the response and webhook's payloads. 2. Optimize CPU and memory consumption. -### Requests ![](/images/versions/core.png) ![](/images/versions/plus.png) +### Requests ![](/images/versions/core.png) - For all `/api/session/` requests use `name` field instead of `sessionName`. - For all "chatting" requests use `session` field instead of `sessionName`. @@ -51,7 +51,7 @@ Now you can authenticate all requests for WAHA - use `WHATSAPP_API_KEY=secret` e If `WHATSAPP_API_KEY` is set - requests must have `X-Api-Key` header with `secret` value, where `secret` - any random secret key. -### Webhooks ![](/images/versions/core.png) ![](/images/versions/plus.png) +### Webhooks ![](/images/versions/core.png) #### Configuration Instead of setting each webhook via environment variables - we use two environments variables: diff --git a/docs/site/content/en/docs/how-to/receive-messages/index.md b/docs/site/content/en/docs/how-to/receive-messages/index.md index b68e30c5..678d9bae 100644 --- a/docs/site/content/en/docs/how-to/receive-messages/index.md +++ b/docs/site/content/en/docs/how-to/receive-messages/index.md @@ -12,7 +12,7 @@ weight: 120 The project uses [Webhooks](https://en.wikipedia.org/wiki/Webhook) to send the messages or events from WhatsApp to your application. -## Webhooks ![](/images/versions/core.png) ![](/images/versions/plus.png) +## Webhooks ![](/images/versions/core.png) You can configure where you want to receive events in environment variables: @@ -55,7 +55,7 @@ You can create a pull request with your favorite language in the [GitHub, in exa Just put the code and **README.md** file in the folder - we'll do the rest! -## Events ![](/images/versions/core.png) ![](/images/versions/plus.png) +## Events ![](/images/versions/core.png) ### message diff --git a/docs/site/content/en/docs/how-to/send-messages/index.md b/docs/site/content/en/docs/how-to/send-messages/index.md index c4c202a0..233d2887 100644 --- a/docs/site/content/en/docs/how-to/send-messages/index.md +++ b/docs/site/content/en/docs/how-to/send-messages/index.md @@ -28,7 +28,7 @@ Read more about [multiple sessions →]({{< relref "/docs/how-to/sessions" >}}) For phone number `12132132131` the `chatId` is `12132132131@c.us`. - **Groups** use random number with `@g.us` at the end. -## Send text ![](/images/versions/core.png) ![](/images/versions/plus.png) +## Send text ![](/images/versions/core.png) To send text message - use `POST /api/sendText` with example payload. ```json { @@ -38,7 +38,7 @@ To send text message - use `POST /api/sendText` with example payload. } ``` -## Reply on message ![](/images/versions/core.png) ![](/images/versions/plus.png) +## Reply on message ![](/images/versions/core.png) To reply on a message - use `POST /api/reply` with example payload. ```json { @@ -52,7 +52,7 @@ To reply on a message - use `POST /api/reply` with example payload. ### Reply files ![](/images/versions/plus-soon.png) WAHA does not support reply with files (images, voice, etc). If you're interested in it - please create an issue in GitHub. -## Add a reaction ![](/images/versions/core.png) ![](/images/versions/plus.png) +## Add a reaction ![](/images/versions/core.png) Use `PUT /api/reaction` method to set reaction to a message. {{< alert icon="👉" text="Reaction API uses PUT, not POST request! Please make sure you send right request." />}} diff --git a/docs/site/content/en/docs/overview/introduction.md b/docs/site/content/en/docs/overview/introduction.md index 02f6e579..8efcd5ab 100644 --- a/docs/site/content/en/docs/overview/introduction.md +++ b/docs/site/content/en/docs/overview/introduction.md @@ -32,21 +32,21 @@ WAHA is distributed in two versions: Here's the available features: ### Messages -- Send messages ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Receive messages ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Message replies ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Send location ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Send buttons ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Receive location ![](/images/versions/core.png) ![](/images/versions/plus.png) -- React to messages ![](/images/versions/core.png) ![](/images/versions/plus.png) +- Send messages ![](/images/versions/core.png) +- Receive messages ![](/images/versions/core.png) +- Message replies ![](/images/versions/core.png) +- Send location ![](/images/versions/core.png) +- Send buttons ![](/images/versions/core.png) +- Receive location ![](/images/versions/core.png) +- React to messages ![](/images/versions/core.png) - Send media (images/documents/files) ![](/images/versions/plus.png) - Send voice messages ![](/images/versions/plus.png) - Receive media (images/audio/video/documents) ![](/images/versions/plus.png) - Receive messages - webhook retries ![](/images/versions/plus.png) ### Sessions -- Multi Device ![](/images/versions/core.png) ![](/images/versions/plus.png) -- Get the screenshot ![](/images/versions/core.png) ![](/images/versions/plus.png) +- Multi Device ![](/images/versions/core.png) +- Get the screenshot ![](/images/versions/core.png) - Session saving (don't have to scan QR on every restart) ![](/images/versions/plus.png) - Session saving on remote storage (database, redis) ![](/images/versions/plus-soon.png) - Single WhatsApp account running inside one container ![](/images/versions/core.png) @@ -54,26 +54,23 @@ Here's the available features: ### Security - API authentication ![](/images/versions/plus.png) -- Swagger panel authentication ![](/images/versions/plus-soon.png) +- Swagger panel authentication ![](/images/versions/plus.png) ### Updates - Bug fixes and updates come as soon as they are implemented. ![](/images/versions/plus.png) - One month delay in bug fixes and updates. ![](/images/versions/core.png) -### Groups ![](/images/versions/soon.png) -- Join groups by invite +### Groups ![](/images/versions/core.png) +- Create a group - Get invite for group - Modify group info (subject, description) -- Modify group settings (send messages, edit info) - Add group participants - Kick group participants - Promote/demote group participants -### Contacts ![](/images/versions/soon.png) -- Mention users +### Contacts ![](/images/versions/core.png) - Mute/unmute chats - Block/unblock contacts - Get contact info - Get profile pictures -- Set user status message