waha icon indicating copy to clipboard operation
waha copied to clipboard

[BUG][WEBJS] - READ message.ack event on Group messages

Open devlikepro opened this issue 1 year ago • 2 comments

There's no READ message.ack even in group messages in WEBJS engine.

patron:PRO

devlikepro avatar Aug 14 '24 05:08 devlikepro

+1

arpanbagui7 avatar Aug 14 '24 05:08 arpanbagui7

webjs changes the message.ack but doesn't fire the issue. The possible solution would be to request a message after a while to check the message.ack via GET /api/{session}/chats/{chatId}/messages/{messageId} (not ready yet https://github.com/devlikeapro/waha/issues/484)

We'll research the issue with ack a bit later

patron:PRO

devlikepro avatar Aug 21 '24 10:08 devlikepro

Hi! Added message.ack support for Groups and Status in WEBJS in 2025.4.2 Now you should receive the events

also added message._data.receipts in 💬 Chats - Get message by id so you can check the ack (for groups and status messages only)

{
  "delivery": [
    {
      "id": {
        "server": "c.us",
        "user": "111111111111",
        "_serialized": "[email protected]"
      },
      "t": 1746409561
    }
  ],
  "read": [
    {
      "id": {
        "server": "c.us",
        "user": "333333333333",
        "_serialized": "[email protected]"
      },
      "t": 1746409580
    }
  ],
  "deliveryRemaining": 0,
  "played": [],
  "playedRemaining": 2
}

patron:PRO

devlikepro avatar May 05 '25 06:05 devlikepro

⚠️ ⚠️ ⚠️ ⚠️ ⚠️ WEBJS - Starting from 2025.8.3 version you must add config.webjs.tagsEventsOn to session config to enable message.ack event for WEBJS

Image

⚠️ ⚠️ ⚠️ ⚠️ ⚠️

https://waha.devlike.pro/docs/how-to/sessions/#webjs

  • tagsEventsOn — Enable emission of special tag:* engine 🔄 Events - required for presence.update and message.ack.
{
  "name": "default",
  "config": {
    "webjs": {
      "tagsEventsOn": false
    }
  }
}

patron:PRO

devlikepro avatar Aug 30 '25 11:08 devlikepro

Hello! About tagsEventsOn...

Is there any way to enable it through WAHA’s global environment variables?

In my use case, I spin up a container with a session already started programmatically using WHATSAPP_START_SESSION, so it would be important for that session to start with tagsEventsOn = true.

rafaheringer avatar Oct 08 '25 01:10 rafaheringer

Portuguese


Olá! Sobre tagsEventosOn...

Existe alguma maneira de habilitá-lo através das variáveis ​​ambientais globais da WAHA?

No meu caso de uso, eu abro um contêiner com uma sessão já iniciada programaticamente usando WHATSAPP_START_SESSION, então seria importante que essa sessão iniciasse com tagsEventsOn = true.

github-actions[bot] avatar Oct 08 '25 01:10 github-actions[bot]