waha icon indicating copy to clipboard operation
waha copied to clipboard

[feature] ability receive reactions in WEBJS session

Open ehussain opened this issue 2 years ago • 7 comments

Hello,

We are looking for ability to send a reactions via api. Also webhook option to receive the reaction when someone reacts on whatsapp.

We are looking for this options on WEBJS session.

ehussain avatar Aug 21 '23 07:08 ehussain

Hi! Doesn't it work? PUT /api/reaction works on both WEBJS and NOWEB (at least it should) https://waha.devlike.pro/docs/how-to/send-messages/#add-a-reaction-imagesversionscorepng

As I remember, you get new message event when you get a reaction on your message, but it's not certain. Have you tested it with reactions?

allburov avatar Aug 21 '23 09:08 allburov

Yes. I have tested. We are not receiving webhook for WEBJS version. I have tested with NOWEB and there we get webhook.

Receiving reaction is important feature that we are looking for.

ehussain avatar Aug 21 '23 09:08 ehussain

I see, so the problem is only in receiving reactions, not in sending them, right? Just wanna understand the scope of the issue better

allburov avatar Aug 21 '23 09:08 allburov

Hello @allburov

I have tested all 4 scenarios and here is update.

  1. WEBJS - sending reactions is working
  2. NOWEB - sending reactions is working
  3. NOWEB - receiving reactions is working 4. WEBJS - receiving reactions is not working - we are not receiving webhook for this case.

ehussain avatar Aug 21 '23 10:08 ehussain

Thank you, appreciate the details!🙏

allburov avatar Aug 21 '23 10:08 allburov

Hello @allburov approximately when this feature will be released?

ehussain avatar Aug 24 '23 03:08 ehussain

Hi! Looking at how we can combine events from all engines to make some unique message.reaction event. No estimation here yet

allburov avatar Aug 24 '23 08:08 allburov

Hah, it's working now, idk when we added it https://waha.devlike.pro/docs/how-to/webhooks/#messagereaction

{
  "event": "message.reaction",
  "session": "default",
  "me": {
    "id": "[email protected]",
    "pushName": "Sim2"
  },
  "payload": {
    "id": "[email protected]_7AAAAAAAAAAAA",
    "from": "[email protected]",
    "fromMe": false,
    "participant": "[email protected]",
    "to": "[email protected]",
    "timestamp": 1721294738.061,
    "reaction": {
      "text": "❤️",
      "messageId": "[email protected]_BBBBBBBBBBB"
    }
  },
  "engine": "WEBJS",
  "environment": {
    "version": "2024.7.5",
    "engine": "WEBJS",
    "tier": "PLUS",
    "browser": "/usr/bin/google-chrome-stable"
  }
}

Sorry for not closing the issue early

patron:PRO

devlikepro avatar Jul 18 '24 09:07 devlikepro