From 399e27e24e031db5ece5a034062aaa903e138373 Mon Sep 17 00:00:00 2001 From: allburov Date: Sun, 17 Sep 2023 15:59:27 +0700 Subject: [PATCH] [core] Name endpoints and webhooks --- docs/site/content/en/docs/how-to/chats/index.md | 2 +- docs/site/content/en/docs/how-to/polls/index.md | 2 +- docs/site/content/en/docs/how-to/presence/index.md | 2 +- docs/site/content/en/docs/how-to/receive-messages/index.md | 2 +- docs/site/content/en/docs/how-to/webhooks/index.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/site/content/en/docs/how-to/chats/index.md b/docs/site/content/en/docs/how-to/chats/index.md index f8193250..4da9a46e 100644 --- a/docs/site/content/en/docs/how-to/chats/index.md +++ b/docs/site/content/en/docs/how-to/chats/index.md @@ -15,7 +15,7 @@ Parameters in path that you can find in below endpoints: - `{session}` - use the session name for Whatsapp instance that you created with `POST /api/session/start` endpoint - `{chatId}` - chat id in format `123123123123@[c.us|g.us]`, `c.us` for direct chats and `g.us` for groups. -## Methods +## Endpoints ### Get all chats Get all chats `GET /api/{session}/chats` diff --git a/docs/site/content/en/docs/how-to/polls/index.md b/docs/site/content/en/docs/how-to/polls/index.md index 75a3cec2..6f4835f9 100644 --- a/docs/site/content/en/docs/how-to/polls/index.md +++ b/docs/site/content/en/docs/how-to/polls/index.md @@ -54,7 +54,7 @@ The response you get back: You must save the `id` field from the response in your database so that you can identify the poll for which you receive a vote (see webhook events below). -## Events +## Webhooks ### poll.vote diff --git a/docs/site/content/en/docs/how-to/presence/index.md b/docs/site/content/en/docs/how-to/presence/index.md index 159b34f5..26ca587d 100644 --- a/docs/site/content/en/docs/how-to/presence/index.md +++ b/docs/site/content/en/docs/how-to/presence/index.md @@ -129,7 +129,7 @@ You can subscribe to presence information by calling `POST /api/{session}/presen You can get later presence information for the chat with above `GET` endpoints or by listening to `presence.update` webhook. -## Events +## Webhooks ### presence.update You can subscribe to `presence.update` webhook event to get the most recent presence information. 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 0f7c424a..3db13125 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 @@ -36,7 +36,7 @@ Start a new session with configured `message` event in webhooks - call `POST /ap After that WAHA'll send events (see below) about new messages to an endpoint you provided. -## Events +## Webhooks Here's examples of message-related events. Read [Webhooks ->]({{< relref "/docs/how-to/webhooks" >}}) to find how to set them up. diff --git a/docs/site/content/en/docs/how-to/webhooks/index.md b/docs/site/content/en/docs/how-to/webhooks/index.md index 4ad6e53e..c39c33ea 100644 --- a/docs/site/content/en/docs/how-to/webhooks/index.md +++ b/docs/site/content/en/docs/how-to/webhooks/index.md @@ -108,7 +108,7 @@ docker run -it -e "WHATSAPP_HOOK_EVENTS=*" -e WHATSAPP_HOOK_URL=https://httpbin. -## Events +## Webhooks ### message