aldinokemal / go-whatsapp-web-multidevice

API for Whatsapp Web Multi Device Version, Support UI & Webhook
MIT License
581 stars 245 forks source link

🐞 Tried to send a couple hundred messages to different recepients, WhatsApp logged me out and go-whatsapp-web-multidevice erased my paired phone from store. #134

Closed HaimenToshi closed 5 months ago

HaimenToshi commented 7 months ago

What happened?

As per title. Tried sending an assignment to my students (149 in total) through the server using HTTP and NodeJS, the WhatsApp app on my phone logged me out because "You've logged in using a different phone". Checking on the server web UI, I've found that my paired phone got erased completely as if I didn't pair it to begin with. What could be the issue ?

Reproduction Steps

Send a lot of messages at once

Relevant log output

No response

Screenshots or Additional Context

No response

Application Version

v4.12.0

Verification

aldinokemal commented 7 months ago

since this is not officially an API. send hundreds of messages at once is extremely not recommended.   You can create round-robin mechanisms with your app to avoid crashes or being banned from WhatsApp. 

HaimenToshi commented 7 months ago

since this is not officially an API. send hundreds of messages at once is extremely not recommended. You can create round-robin mechanisms with your app to avoid crashes or being banned from WhatsApp.

Is it common that this server crashes under load ? And how common are WhatsaApp bans for this kind of usage ? Thank you.

aldinokemal commented 7 months ago

Yes, this is a common issue.We don't know how many limit messages are safe for us since there is no clear statement from WhatsApp about that.

HaimenToshi commented 7 months ago

Yes, this is a common issue.We don't know how many limit messages are safe for us since there is no clear statement from WhatsApp about that.

I'll implement a queue that sends a message every 10 - 15 seconds. From your experience would that be good enough ?

aldinokemal commented 7 months ago

I can't guarantee about that, seem better move this to discussion

HaimenToshi commented 7 months ago

Hello. Message queue is implemented, it will send a message every 8 seconds. I'll test this today at work and report what I find. Thank you so much.

HaimenToshi commented 6 months ago

UPDATE: Even 2 MINUTES apart messages got me blocked. I believe the main culprit is that I'm sending them using a server located in a different country than I'm currently residing in. A question, how does this server communicate with Whatsapp to send messages ? Is it through web.whatsapp.com ? I'm asking to see if this server is sending some data with its requests to Whatsapp that could raise red flags. Thank you.

lairhas commented 6 months ago

@HaimenToshi this has something to do with the behavior of the program and how it send the message. Avoid sending tons of message to random numbers in short period of time. But still, no one can guarantee WhatsApp will not ban your number no matter how since this is "unofficial".

aldinokemal commented 5 months ago

for further discussion please move to discussion tab