devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
831 stars 254 forks source link

Add "me" in webhook payload #219

Closed allburov closed 9 months ago

allburov commented 9 months ago

Because the NOWEB engine does not have the connected phone number in the message payload, if you could include it, it would be good because I validate the messages received from the webhook by the session and the number, you could include it as it is in /sessions

allburov commented 9 months ago

Added in 2023.10.12 (PLUS)

{
  "event": "message",
  "session": "default",
  "engine": "WEBJS",
  "environment": {
    "tier": "PLUS",
    "version": "2023.10.12"
  },
  "me": {
    "id": "71111111111@c.us",
    "pushName": "~"
  },
  "payload": {
  }
}