forked from devlikeapro/waha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Fix set presence documentation
- Loading branch information
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,23 +27,26 @@ See the list of engines [**that support the feature ->**]({{< relref "/docs/how- | |
You can set your global or chat-related presence with `POST /api/{session}/presence` endpoint | ||
|
||
Start typing to a chat (you can use `POST /startTyping` instead) | ||
```json | ||
``` | ||
POST /api/{session}/presence | ||
{ | ||
"chatId": "[email protected]", | ||
"presence": "typing" | ||
} | ||
``` | ||
|
||
Clear "typing" state (you can use `POST /stopTyping` instead) | ||
```json | ||
``` | ||
POST /api/{session}/presence | ||
{ | ||
"chatId": "[email protected]", | ||
"presence": "paused" | ||
} | ||
``` | ||
|
||
Set global "online", all contacts will see it | ||
```json | ||
``` | ||
POST /api/{session}/presence | ||
{ | ||
"presence": "online" | ||
} | ||
|
@@ -53,7 +56,8 @@ Set global "online", all contacts will see it | |
to the device. | ||
If you would like to receive said notifications - you need to mark a session's presence as `offline`. | ||
|
||
```json | ||
``` | ||
POST /api/{session}/presence | ||
{ | ||
"presence": "offline" | ||
} | ||
|