whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Inbound message "Message via ad" is not received

Open jonylim opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

Hi,

I have multiple occurrences that if an incoming message is a "Message via ad", it won't be received in the "message" callback.

Here is a screenshot of the example: wa-message-via-ad

Expected behavior

Incoming message should be received properly.

Steps to Reproduce the Bug or Issue

Send message via ad to the connected WhatsApp.

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Docker (node:lts-alpine3.14) WhatsApp-web.js version: v1.21.0 (latest) WhatsApp Web version: 2.2330.11 Node.js Version: v16.15.1

Additional context

No response

jonylim avatar Jul 31 '23 10:07 jonylim

This is a frequently case and i couldn't do anithing for read the incomming message. A temporary solution is scan the chats list and compare it from the received messages chats, if I dont found it so is posible a case.

YisusCore avatar Aug 08 '23 23:08 YisusCore

I think the biggest barrier to this bug is the fact that its only select locations that have this feature enabled

i wonder if these message have special properties

if you guys could do this, it would be helpful! const chat = await client.getContactById('contactid of the sent via ad chat') const messages = await chat.fetchMessages(); for (message of messages) { console.log(message) }

This would be useful to see if these messages have special properties on them

opssemnik avatar Aug 14 '23 23:08 opssemnik

Hi, is there any fix for this?

jonylim avatar Nov 27 '23 04:11 jonylim

any solution?

N0N4M3BNS avatar May 28 '24 01:05 N0N4M3BNS