[FEATURE] Contact avatar missing in message webhook payloads
Currently, when a message is received and sent via webhook (message and message.any events), the payload does not contain the contact's profile picture URL (avatar).
Current Payload (Before Fix):
"payload": {
"id": "false_77820000000000@lid_AC59F4CD4DF1CD888DFE1ECAF78A35FE",
"timestamp": 1766255131,
"from": "77820000000000@lid",
"fromMe": false,
"source": "app",
"body": "Ola",
"to": null,
"participant": null,
"hasMedia": false,
"media": null,
"ack": 2,
"location": null,
"vCards": null,
"ackName": "DEVICE",
"replyTo": null,
Proposed Work:
The message webhook payload should include a valid avatar URL. To achieve this without performance degradation, the engine should:
- Check the internal
profilePicturescache. - If not found, perform an async pre-fetch from WhatsApp servers.
- Cache the result for 24h.
I don't understand why the option to add a contact's profile picture was removed; we already had integrations using it, and it just stopped working.
+1
+1
+1
+1
+1