Open MartinMbae opened 2 weeks ago
Estou com o mesmo problema.
I'm experiencing the same issue.
It happens randomly and only with one of the hundreds of connected numbers.
The message is sent normally without any problems, but it doesn't appear in the sender's WhatsApp application. However, if I list the conversation using the whatsapp-web.js library, the message appears among the sent messages.
Is there an existing issue for this?
Describe the bug
I'm experiencing an issue while using this library to develop a message scheduling bot. The bot is designed to run every minute to check for scheduled messages. When a scheduled message is found, the bot launches the client, and upon the "ready" event, it sends the message using client.sendMessage().
Problem: On some occasions, messages are successfully sent to the intended recipient; however, they do not appear on the sender's end (my account). This inconsistency occurs most of the time but not always. When this issue happens, the recipient receives the message as expected, but there is no record of the message on the sender's device or chat history.
Additional Information: This issue does not occur 100% of the time; it is intermittent but frequent. No error messages or warnings are logged during the process.
Troubleshooting Steps Taken: I have tried to introduce a delay both before and after sending messages. It doesn't help.
Expected behavior
Messages sent using client.sendMessage() should appear in both the recipient's and sender's chat histories consistently.
Actual Behavior: Messages are sent to the recipient, but they do not appear in the sender's chat history in most cases.
Steps to Reproduce the Bug or Issue
Relevant Code
......
.......
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS : Ubuntu 22 Phone: Android whatsapp-web.js version [ 1.25] WhatsApp Web version : 2.3000.1015953369 Branch: web-exodus Platform: Node.js v22.1.0,
Additional context
Could you please provide guidance on what might be causing this behavior or any additional troubleshooting steps I could take? Any help to resolve this issue would be greatly appreciated.