-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
The payload for the message event is missing the to property with the phone number of the instance/session, it works fine for WEBJS.
https://waha.devlike.pro/docs/how-to/webhooks/#message
{
"event": "message",
"session": "default",
"engine": "WEBJS",
"payload": {
"id": "[email protected]_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"timestamp": 1667561485,
"from": "[email protected]",
......
"to": "[email protected]",
"body": "Hi there!",
......Note that the NOWEB engine is missing the "to" property.
"event": "message",
"session": "default",
"engine": "NOWEB",
"payload": {
"id": "[email protected]_3EB588F66919A0",
"timestamp": 1688571746,
"from": "[email protected]",
"fromMe": false,
"body": "Hello",
"hasMedia": false,
"_data": {
"key": {
"remoteJid": "[email protected]",
"fromMe": false,
"id": "3EB588F66919A0"
},
"messageTimestamp": 1688571746,Here is the full webhook data
{
"event": "message",
"session": "default",
"payload": {
"id": "[email protected]_3EB0XXX31355FBXXXXXXX",
"timestamp": 1688572278,
"from": "[email protected]",
"fromMe": false,
"body": "hello test from noweb",
"hasMedia": false,
"_data": {
"key": {
"remoteJid": "[email protected]",
"fromMe": false,
"id": "3EB0XXX31355FBXXXXXXX"
},
"messageTimestamp": 1688572278,
"pushName": "Some Name",
"broadcast": false,
"message": {
"extendedTextMessage": {
"text": "hello test from noweb",
"contextInfo": {
"ephemeralSettingTimestamp": "1688294982",
"disappearingMode": {
"initiator": "CHANGED_IN_CHAT"
}
},
"inviteLinkGroupTypeV2": "DEFAULT"
},
"messageContextInfo": {
"deviceListMetadata": {
"senderKeyHash": "pvnwXXXsJsnXXX==",
"senderTimestamp": "1688551993",
"recipientKeyHash": "XXXQr6sXXX\/7\/g==",
"recipientTimestamp": "1688569664"
},
"deviceListMetadataVersion": 2
}
}
}
},
"engine": "NOWEB"
}