Group Leave (V2)

Triggered when a member leaves or is removed from a group.

Best practices

  • Update your group member list in your backend database.

  • Check if it's a voluntary leave or an admin removal.

Group Leaving

Triggered whenever someone is no longer part of the group.

Fields

  • chatId: The group ID.
  • participants: Array of IDs that left.

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Webhook Payload Example
application/json
string *
number *
string *
object *
string *
string *
object *
object *

Example

{
"id": "evt_01...",
"timestamp": 1634567890123,
"session": "default",
"metadata": {
  "user.id": "123",
  "user.email": "email@example.com"
  },
"engine": "WEBJS",
"event": "group.v2.leave",
"payload": {
  "chatId": "1234567890@g.us",
  "participants": {
    "0": "11111111111@c.us"
    }
  },
"me": {
  "id": "11111111111@c.us",
  "lid": "123@lid",
  "pushName": "Instance"
  }
}

Command Palette

Search for a command to run...