waha icon indicating copy to clipboard operation
waha copied to clipboard

[FEATURE] Contact avatar missing in message webhook payloads

Open bergpinheiro opened this issue 11 months ago • 6 comments

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:

  1. Check the internal profilePictures cache.
  2. If not found, perform an async pre-fetch from WhatsApp servers.
  3. Cache the result for 24h.

patron:PRO

bergpinheiro avatar Dec 20 '25 19:12 bergpinheiro

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.

patron:PRO

bergpinheiro avatar Dec 20 '25 19:12 bergpinheiro

+1

paulobautz avatar Dec 20 '25 19:12 paulobautz

+1

nestordavalos avatar Dec 20 '25 19:12 nestordavalos

+1

DiegoAugustusCunha avatar Dec 20 '25 19:12 DiegoAugustusCunha

+1

phmzum avatar Dec 20 '25 19:12 phmzum

+1

OtavioLinden avatar Dec 20 '25 21:12 OtavioLinden