Event is triggered when a message is received in any group the session is a part of.
Webhook Event: messages-group.received
This event is triggered whenever a new message is received in a group that your session is a member of. The payload is similar to a direct message but critically includes the remoteJid
of the group and the participant
JID of the actual sender.
The payload includes the message content, the group's JID, the sender's JID, and the message key.
To learn more about handling media in this event, please refer to the help center article on handling media messages.
Code Examples
{
"event": "messages-group.received",
"timestamp": 1633456799,
"data": {
"key": {
"id": "message-id-group-456",
"fromMe": false,
"remoteJid": "[email protected]",
"participant": "[email protected]"
},
"message": {
"conversation": "Hey everyone, just checking in!"
}
}
}