Event is triggered when a message is received in a personal (one-to-one) chat.
Webhook Event: messages-personal.received
This event is triggered when a new message is received in a direct, one-to-one conversation with a contact.
The payload includes the message content and the sender's JID in the remoteJid
field. This event is distinct from group or newsletter messages.
To learn more about handling media in this event, please refer to the help center article on handling media messages.
Code Examples
{
"event": "messages-personal.received",
"timestamp": 1633456819,
"data": {
"key": {
"id": "message-id-personal-123",
"fromMe": false,
"remoteJid": "[email protected]"
},
"message": {
"conversation": "Hi there, I wanted to ask about my order."
}
}
}