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.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,43 @@ Fired on all message creations, including your own. The payload is the same as f | |
} | ||
``` | ||
|
||
### message.reaction | ||
Receive events when a message is reacted to by a user (or **yourself** reacting to a message). | ||
- `payload.reaction.text` - emoji that was used to react to the message. It'll be an empty string if the reaction was removed. | ||
- `payload.reaction.messageId` - id of the message that was reacted to. | ||
|
||
```json | ||
{ | ||
"event": "message.reaction", | ||
"session": "default", | ||
"me": { | ||
"id": "[email protected]", | ||
"pushName": "WAHA" | ||
}, | ||
"payload": { | ||
"id": "[email protected]_11111111111111111111111111111111", | ||
"from": "[email protected]", | ||
"fromMe": false, | ||
"participant": "[email protected]", | ||
"to": "[email protected]", | ||
"timestamp": 1710481111.853, | ||
"reaction": { | ||
"text": "🙏", | ||
"messageId": "[email protected]_11111111111111111111111111111111" | ||
} | ||
}, | ||
"engine": "WEBJS", | ||
"environment": { | ||
"version": "2024.3.3", | ||
"engine": "WEBJS", | ||
"tier": "PLUS", | ||
"browser": "/usr/bin/google-chrome-stable" | ||
} | ||
} | ||
``` | ||
|
||
{{< alert icon="👉" text="NOWEB engine note - reactions were sent in 'message' and 'message.any' events, not it's available only in 'message.reaction'!" />}} | ||
|
||
### message.ack | ||
Receive events when server or recipient gets the message, read or played it. | ||
|
||
|