pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.4k stars 3.67k forks source link

Can't get first message if the sender is new contact to device #1519

Open hashfiputra opened 2 years ago

hashfiputra commented 2 years ago

Is there an existing issue for this?

Describe the bug

Whenever a new contact message the connected device, it didn't catch the first message at all. For the next message it catch normally.

Expected behavior

Catch the first message normally

Steps to Reproduce the Bug or Issue

Message the connected device with new contact, where the new contact never message the connected device

Relevant Code

client.on('message_create', async (msg) => {
  console.log('New message = ', msg);
});

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS Armbian 21.08.1 Buster whatsapp-web.js version ^1.16.7 WhatsApp Web version 2.2220.8 Node.js version v16.15.0

Additional context

No response

bernardoely commented 2 years ago

Same here!

MemmoX commented 1 year ago

Same here, still no solution?

fernandomondo commented 1 year ago

+1

AKwoKWH commented 8 months ago

Same, any solutions?

juancruzsosagab commented 8 months ago

Same thing here!