Open arielpts opened 1 day 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.
Sometimes, when receiving a message, whatsapp displays "Waiting for this message...", and waits for the message to be cleared before sending any webhook. Example:
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 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#L716Something like: