devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
813 stars 248 forks source link

[BUG][NOWEB] - Webhook when viewing status not working #329

Closed MoishyShuvax closed 1 month ago

MoishyShuvax commented 1 month ago

Webhook when viewing status not working

Version

{
  "version": "2024.5.6",
  "engine": "NOWEB",
  "tier": "PLUS",
  "browser": "/usr/bin/chromium"
}

Expected behavior

While waiting for the message.ack event, a webhook should be sent whenever a contact views the status I sent

In practice, the webhook is received only in the first view and not in the following views

devlikepro commented 1 month ago

In practice, the webhook is received only in the first view and not in the following views

That's right, it works this way even in the origial WA app - if you watch status multiple times from the same account - it shows "1 view(s)" If you watch it from different account - it'll send you a new message.ack for that view (if the account has the right "send ack" settings)

let us know if we misunderstood smth here!

patron:PRO

MoishyShuvax commented 1 month ago

No, I'm talking about viewing from another account The webhook is sent only on the first view, and subsequent views from other accounts are not sent

oteGroupMoishy commented 1 month ago

No, I'm talking about viewing from another account The webhook is sent only on the first view, and subsequent views from other accounts are not sent

@devlikepro Any update on this?

allburov commented 1 month ago

Working on that! Found the root cause, fixing it in the engine, hopefully fix will be available soon! :crossed_fingers:

patron:PRO

allburov commented 1 month ago

Fixed in 2024.5.14! Also fixed from/to name - it'll be status@broadcast

{
    "event": "message.ack",
    "session": "default",
    "me": {
        "id": "123123@c.us",
        "pushName": "Sim1"
    },
    "payload": {
        "id": "true_status@broadcast_AAAAAAAAAAAAAAAAA",
        "from": "status@broadcast",
        "to": "status@broadcast",
        "participant": "321321@c.us",
        "fromMe": true,
        "ack": 3,
        "ackName": "READ"
    },
    "engine": "NOWEB",
    "environment": {
        "version": "2024.5.14",
        "engine": "NOWEB",
        "tier": "PLUS",
        "browser": "/usr/bin/google-chrome-stable"
    }
}

patron:PRO