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.52k stars 3.69k forks source link

account is getting banned after 1000 contacts #2247

Closed pavanaringale closed 11 months ago

pavanaringale commented 1 year ago

Is there an existing issue for this?

Describe the bug

I am trying to send messages to 30000 unsaved contacts for my election promotional campaign after 1000 messages my accounts is getting banned can I do anything to send messages to this 30000 contacts these

Expected behavior

NO

Steps to Reproduce the Bug or Issue

see

Relevant Code

const request = require('request'); const fs = require('fs');

const numbers = [

"9158602420", "8983496731",

]; const url = 'http://127.0.0.1:8000/send-media'; const headers = {'Content-Type': 'application/json'};

async function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }

async function sendMedia(num) { const data = JSON.stringify({ "caption": "मी एक सामान्य सामाजिक कार्यकर्ता आपल्या सर्वांच्या कृपा आशीर्वादाने व लोक आग्रहास्तव ' नाशिकरोड देवळाली व्यापारी सहकारी बँकेच्या पंचवार्षिक २०२३ ' च्या निवडणूकीच्या माध्यमातून सहकार क्षेत्रात पदार्पण करू इच्छित होतो व त्यासाठी मी 'परिवर्तन पॅनल' कडून सर्वसाधारण गटातून मी उमेदवारी अर्ज भरला होता आणि तो वैद्यही झाला होता.\n\nपरंतु, यंदा बँकेचे त्रस्त सभासद व कर्मचारी यांच्या मोठ्याप्रमाणात मिळालेल्या प्रतिसादाला घाबरून व परिवर्तन अटळ मानले जात असताना सत्ताधारी पॅनल च्या वतीने उमेदवारांचे अर्ज बाद करण्यासाठी 'लागेल ते' प्रयत करण्यात आले व निवडणुकीच्या अंतिम टप्प्यात माझा व बाकी सर्व उमेदवारांचे उमेदवारी अर्ज(फॉर्म) बाद करून निवडणूक बिनविरोध करण्यात आली.\n\nसर्वांनी मला पाठबळ देऊन आपण माझ्या पाठी खंबीरपणे उभे राहीले त्यांचे हे उपकार मी आयुष्यभर विसरणार नाही आपला मी कायम ऋणी राहील.जनता जनार्दनाच्या आशीर्वादाने मी येणाऱ्या पुढील काळात पुन्हा उमेदवारी करून आपला विश्वास सार्थ ठरवेल. धन्यवाद!🙏🙏\n\nआपला परिवर्तन पॅनल चा उमेदवार\n🙏🏻श्री निवृत्ती दत्तात्रय अरींगळे (महाराज ) ", "number": "+91" +num, "file": "https://i.ibb.co/zNCZN68/Whats-App-Image-2023-06-01-at-8-59-42-PM.jpg", "sender": "bank" });

request.post({ url, headers, body: data }, (error, response, body) => { if (error) { console.error('Error:', error); console.log('failed to send whatsapp:', num);

  fs.appendFile('errorNumbers.txt', num + '\n', err => {
    if (err) throw err;
  });
} else {
  console.log('Response:', response.statusCode, body);
}

}); }

async function sendMediaWithDelay() { for (let i = 0; i < numbers.length; i++) { await sendMedia(numbers[i]); if ((i + 1) % 1 === 0) { console.log("Waiting for 5 minutes"); await delay(1000); } } }

sendMediaWithDelay();

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

windows

Additional context

NO

marcioscf commented 1 year ago

This is not a bug. You are violating the terms of use from whatsapp and is getting banned for it. Probably you are getting banned for one of these options:

You are not spacing the messages enough Your contacts are reporting you for spam Your only use from whatsapp is to send these messages.

I suggest you space more the messages and use a whatsapp number that really interacts with other people manually too.

pavanaringale commented 1 year ago

I tried to interact witg unsaved numbers but when i interact it gets banned

On Sat, 3 Jun, 2023, 2:41 am Marcio Sales, @.***> wrote:

This is not a bug. You are violating the terms of use from whatsapp and is getting banned for it. Probably you are getting banned for one of these options:

You are not spacing the messages enough Your contacts are reporting you for spam Your only use from whatsapp is to send these messages.

I suggest you space more the messages and use a whatsapp number that really interacts with other people manually too.

— Reply to this email directly, view it on GitHub https://github.com/pedroslopez/whatsapp-web.js/issues/2247#issuecomment-1574320485, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAI4HJYF4OH2YSDBCRLX7TLXJJJGHANCNFSM6AAAAAAYYX3OWE . You are receiving this because you authored the thread.Message ID: @.***>

pavanaringale commented 1 year ago

i am trying to send message to 32000 unsaved numbers please suggest me the best way to do that

what time delay should i add between two messages and what should be the best way to send these messages in one day

On Sat, 3 Jun, 2023, 7:31 am Pavan Aringale, @.***> wrote:

I tried to interact witg unsaved numbers but when i interact it gets banned

On Sat, 3 Jun, 2023, 2:41 am Marcio Sales, @.***> wrote:

This is not a bug. You are violating the terms of use from whatsapp and is getting banned for it. Probably you are getting banned for one of these options:

You are not spacing the messages enough Your contacts are reporting you for spam Your only use from whatsapp is to send these messages.

I suggest you space more the messages and use a whatsapp number that really interacts with other people manually too.

— Reply to this email directly, view it on GitHub https://github.com/pedroslopez/whatsapp-web.js/issues/2247#issuecomment-1574320485, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAI4HJYF4OH2YSDBCRLX7TLXJJJGHANCNFSM6AAAAAAYYX3OWE . You are receiving this because you authored the thread.Message ID: @.***>

pavanaringale commented 1 year ago

I am still getting banned

danielR2001 commented 1 year ago

Make a random delay between 3-16 sec (you can set different boundaries)

bogordesaincom commented 1 year ago

using delay job background. like bullmq or queue

mugwanyaronnie commented 1 year ago

DO NOT TRY sending bulk messages on whatsapp let it be to even 20 contacts ur account will get banned, for life. May be use SMS.

pavanaringale commented 1 year ago

Okay but it worked for 1300 contacts so now it will not work even for 1000?

On Sat, 10 Jun, 2023, 1:22 am mugwanyaronnie, @.***> wrote:

DO NOT TRY sending bulk messages on whatsapp let it be to even 20 contacts ur account will get banned, for life. May be use SMS.

— Reply to this email directly, view it on GitHub https://github.com/pedroslopez/whatsapp-web.js/issues/2247#issuecomment-1585060224, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAI4HJ7KGVGM7WE2ZU5AF7DXKN5ITANCNFSM6AAAAAAYYX3OWE . You are receiving this because you authored the thread.Message ID: @.***>

pavanaringale commented 1 year ago

so are you suggesting me to not try bullmq or queue?

On Sat, 10 Jun, 2023, 1:30 am Pavan Aringale, @.***> wrote:

Okay but it worked for 1300 contacts so now it will not work even for 1000?

On Sat, 10 Jun, 2023, 1:22 am mugwanyaronnie, @.***> wrote:

DO NOT TRY sending bulk messages on whatsapp let it be to even 20 contacts ur account will get banned, for life. May be use SMS.

— Reply to this email directly, view it on GitHub https://github.com/pedroslopez/whatsapp-web.js/issues/2247#issuecomment-1585060224, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAI4HJ7KGVGM7WE2ZU5AF7DXKN5ITANCNFSM6AAAAAAYYX3OWE . You are receiving this because you authored the thread.Message ID: @.***>

sudev3 commented 1 year ago

Do you need to split these 1000 messages between 10 - 20 whatsapp numbers, create a 5 - 10 groups and simulate interactions between these numbers, save any number has contact. You can use bluestalk like virtual phone

To make your number with high score do you need interactions and be salved has contact

in the end of your message write a short phrase like... "please tell me if these message was sent to the wrong people, in case of yes i'm feel so sorry" . If the contact didint like to receive it, remove her from your list

erm3nda commented 1 year ago

Related to question:

can I do anything to send messages to this 30000 contacts

Yes, buy 30000/1000 sim cards. That will solve your issue. Apart from that, you're not allowed to do that, because you're spamming.

The @sudev3 idea about to grow the account credibility by adding your own numbers as contacts may work to greatly reduce that numbers.

bryanfok commented 1 year ago

You suppose to get ban.