devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
921 stars 278 forks source link

[Feature Request] Event for "waiting" / "cipher" text messages #554

Open arielpts opened 1 day ago

arielpts commented 1 day ago

Sometimes, when receiving a message, whatsapp displays "Waiting for this message...", and waits for the message to be cleared before sending any webhook. Example:

Screenshot 2024-09-19 at 17 22 55

A clear and concise description of what the problem is. Ex.

In our use case (using a multi-agent interface), it's important to display the same information to the agent (Waiting for this message).

A clear and concise description of what you want to happen.

A solution would be to forward the Events.MESSAGE_CIPHERTEXT that wa.js supports here: https://github.com/devlikeapro/whatsapp-web.js/blob/main/src/Client.js#L716

Something like: image (2)

patron:PRO

devlikepro commented 22 hours ago

Hi! Yeah, make sense, thank you for the report and possible solution! it'll be a bit hard to replicate that behaviour tho :thinking: but we'll figure it out!

patron:PRO

arielpts commented 17 hours ago

Thanks!

Apparently this problem is related to E2E encryption, versions or network.

Perhaps doing the opposite of the "solution" that the Whatsapp says may work: https://faq.whatsapp.com/3398056720476987?cms_id=3398056720476987&draft=false

To reproduce, I would try to get a number that exchanges a lot of messages with new numbers.

In our setup for some reason (WA Business, exchanging ~4K messages per day and it's concentrated in some hours) it is happening ~10 day, so if you want us to QA we can easily reproduce.

patron:PRO