whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

new account got banned

Open unnimona opened this issue 2 years ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

i was trying your product did not send any message today account created 12 hours ago whatsapp account got banned

Expected behavior

unban

Steps to Reproduce the Bug or Issue

scanner whatsapp-web qr

Relevant Code

const { Client } = require('whatsapp-web.js');

const client = new Client();

client.on('qr', (qr) => { // Generate and scan this code with your phone console.log('QR RECEIVED', qr); });

client.on('ready', () => { console.log('Client is ready!'); });

client.on('message', msg => { if (msg.body == '!ping') { msg.reply('pong'); } });

client.initialize();

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

ubuntu chromium

Additional context

No response

unnimona avatar Feb 11 '23 07:02 unnimona

This problem also happened to me, but I noticed that it had to do with the origin of the number that I had obtained and not with the lib. Maybe it could be your case or not, it's worth an analysis.

VINICIUSOLIVER avatar Feb 11 '23 11:02 VINICIUSOLIVER

@VINICIUSOLIVER but I noticed that it had to do with the origin of the number OP said that the phone number got banned as soon as he scanned the QR code , not before scanning the qr code , which means that it has nothing to do with how he obtained the phone number.

question to OP: have you registered the phone number while being connected to a vpn / flagged IP address ? was the web.js session running on a server/pc with the same IP address ?

behind24proxies avatar Feb 11 '23 12:02 behind24proxies

Hi @behind24proxies

In my case it was very similar. Scan the number and a few minutes later it was banned.

But this only happened once in several numbers I tested. I was acquiring these numbers through a bot on telegram and for that reason I think that sometimes it has to do with the origin of the number, but as I said it is worth an analysis to identify.

And answering your question, the lib was running on a local server.

VINICIUSOLIVER avatar Feb 11 '23 12:02 VINICIUSOLIVER

@VINICIUSOLIVER exactly , there is a limit of how many numbers can sign up from a single IP address , and on top of that , the server was also running on localhost (same IP) .

so , too many sign-ups from a single IP = BAD .

in some cases whatsapp blocks SUS phone numbers from registering , that's not what happened to you. Don't blame the telegram bot :) (by the way , mind sharing the @ of the bot ;)

behind24proxies avatar Feb 11 '23 12:02 behind24proxies

Perfect @behind24proxies

the robot was never at fault, on the contrary, it was extremely useful for a battery of tests we did. However, as you said, it generates "temporary numbers" and this occasionally caused an issue, but nothing we didn't expect.

This discussion was extremely helpful as I was unaware that multiple devices on the same IP were at risk of blocking. Thanks for the tip and hope this also solved @unnimona question.

As for the name of the bot, I will be in your debt. The numbers were acquired by someone else and passed on to me, but I have already contacted that person to inform me of the name. As soon as I have an answer I'll post it here!

VINICIUSOLIVER avatar Feb 11 '23 13:02 VINICIUSOLIVER

@behind24proxies and @unnimona

bot: @NotzSMSBot channel: @NotzSMSCanal group: @NotzSMSGrupo support: @AtendimentoNotzSMSBot

VINICIUSOLIVER avatar Feb 11 '23 14:02 VINICIUSOLIVER

i suggest use whatsapp, because whatsapp business it's vulnerable to getting banned

RC047 avatar Feb 12 '23 11:02 RC047

@VINICIUSOLIVER exactly , there is a limit of how many numbers can sign up from a single IP address , and on top of that , the server was also running on localhost (same IP) .

so , too many sign-ups from a single IP = BAD .

in some cases whatsapp blocks SUS phone numbers from registering , that's not what happened to you. Don't blame the telegram bot :) (by the way , mind sharing the @ of the bot ;)

any idea about what is the limit? i did not know about it and makes sense. i'm creating a solution that only listen for messages, will not send but if there is this type of checking it might be dangerous...

robsoncombr avatar Feb 14 '23 23:02 robsoncombr

After a few months of usage, my account got banned today. This is the support message that I got

Your account was banned because you’re using an unofficial and unauthorized version of our WhatsApp app. . . . . . .

Is there any official way of programmatically interacting with whatsapp?

Anybody here has worked with telegram api ? Any gotchas there?

Thanks

Ajitweb avatar Mar 05 '23 11:03 Ajitweb