whatsapp-web.js
whatsapp-web.js copied to clipboard
missing the first message from the customer
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe.
when the customer send a first message i don't get it and when i check the browser it self i found it hidden and a message from whats app telling (waiting for this message please wait ) and this message never previewed and never come
Describe the solution you'd like.
i want to get this message
Describe an alternate solution.
or get notified of it at least to check the phone
Additional context
No response
Are you using MD/Beta? The "waiting for this message, please wait" occurs when the sender is not on the same WhatsApp version than yours, or one above or one below.
And to add, with me, without the "wait message", sometimes the first message that someone send to me simply doesn't fire the "on message" event. I was not able to fin the reason.
It's happen in less than 5% of the cases, the if the person send a second message it works.
Are you using MD/Beta? The "waiting for this message, please wait" occurs when the sender is not on the same WhatsApp version than yours, or one above or one below.
And to add, with me, without the "wait message", sometimes the first message that someone send to me simply doesn't fire the "on message" event. I was not able to fin the reason.
It's happen in less than 5% of the cases, the if the person send a second message it works.
Same issue here.
This sounds like a bug, and not an enhancement
Just for reference, people on Reddit seem to be complaining about this issue (and others) as well. Hopefully the whatsapp devs will pay attention and fix them:
https://www.reddit.com/r/whatsapp/comments/u2pzyp/does_waiting_for_this_message_ever_resolve_itself/ https://www.reddit.com/r/whatsapp/comments/u2uqbz/the_new_windows_update_is_the_worst/ https://www.reddit.com/r/whatsapp/comments/u227gm/updated_whatsapp_desktop_and_now_cant_view_any/ https://www.reddit.com/r/whatsapp/comments/u1wj6d/whatsapp_web_updated_for_me_todayand_two_new_bugs/
I have same problem, but is more than 5% of the cases.
Same issue ):
My instance is missing receiving a lot of messages, when I enabled headless, I noticed the missed messages are all like "Waiting for this message"..... If anyone has any clue please let me know!
Reminds me of #1045
Alguém conseguiu resolver?
Still have same problem
Found this explanation: https://github.com/tulir/whatsmeow/issues/161 ##issuecomment-1488890894
I'll try something like this maybe:
const chat = await msg.getChat();
if (!msg.body) {
await new Promise((resolve) => setTimeout(resolve, 5000));
const fetchedMessages = await chat.fetchMessages({
limit: 1,
fromMe: false,
});
if (fetchedMessages.length > 0) {
msg = fetchedMessages[0];
} else {
return;
}
}
#1716