Closed obriankevin11 closed 1 year ago
Hi,
I would like to test my bot. I scan the QR code with my phone. Then
this.client.on('message'...
How can I send myself messages and have them catched by the listener, in order to test?
Thank you
When I send myself a message, onMessage client handler should receive it.
Any message that is sent to the registered client are catched by the onMessage event listener.
No response
Chromium
Standard
Yes, I am using Multi Device
Win10 22H2 Phone: iOS whatsapp-web.js: 1.23.0 WhatsApp Web version: 2.2348.50 nodejs: v16.17.0
@obriankevin11
If you want to handle messages sent by you, you have to use message_create event
message_create
Thanks!
Is there an existing issue for this?
Describe the bug
Hi,
I would like to test my bot. I scan the QR code with my phone. Then
this.client.on('message'...
is not raised.How can I send myself messages and have them catched by the listener, in order to test?
Thank you
Expected behavior
When I send myself a message, onMessage client handler should receive it.
Steps to Reproduce the Bug or Issue
Any message that is sent to the registered client are catched by the onMessage event listener.
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Win10 22H2 Phone: iOS whatsapp-web.js: 1.23.0 WhatsApp Web version: 2.2348.50 nodejs: v16.17.0
Additional context
No response