mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 797 forks source link

Banned Problem. #247

Closed tetradox closed 6 years ago

tetradox commented 6 years ago

@karopass @alfred82santa @alan-albuquerque @Vini85428026 @tapankumar @MalkaBar @victorriba @tulssinep @mikkelam @mhndm Account is banned when you send 20-30 messages Do you have any suggestions for not being banned?

--I wait 1-10 seconds for each message -- each message is different what can i do?

Browser : chrome the code I am using

document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("558598754564@c.us").then(function(e) { e.sendMessage("Ola") });

brunosoaresds commented 6 years ago

Hi

That’s really strange, I’m sending a lot of messages with no delay and everything is good. You have tried another number or to use it in another smartphone? Maybe using WhatsApp business app?

Another think that you can do is: buy a new number, activate it on WhatsApp and use normally in your cellphone by one or two days, then use in the web using this library.

Best.,

alfred82santa commented 6 years ago

What means banned? your phone number is banned from whatsapp servers? your whatsapp web session disappears? or simply, you can not send more messages?

tetradox commented 6 years ago

I'm getting a virtual number I open whatsapp with nox then I open the WhatsApp web Account is banned when you send 20-30 messages , WhatsApp banned my number

alfred82santa commented 6 years ago

wow! maybe it's because it's a virtual number... I don't know... What comms company provides that number to you? It's possible whatsapp check them

kevinkit commented 6 years ago

When you send a message to a number which is Not conform with the writing of WhatsApp, you will get banned. Always remember No plus in the beginning, country Code needed, also "@c.us" must be at the end Like: "19282626@c.us" .

Maybe your Code produces some faulty numbers.

Also try to uninstall WhatsApp from your phone and Reinstall it. That might unban your phone

Alfred Santacatalina Gea notifications@github.com schrieb am Do., 31. Mai 2018, 15:53:

wow! maybe it's because it's a virtual number... I don't know... What comms company provides that number to you? It's possible whatsapp check them

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/247#issuecomment-393537619, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhecYlxwBeZMQs5s58i1g2vDuCras1Uks5t3_XzgaJpZM4UVD8e .

tetradox commented 6 years ago

https://www.youtube.com/watch?v=SXmtEyF027U

mukulhase commented 6 years ago

Could @kevinkit or someone please contribute a WhatsApp id validator? Perhaps a decorator to any function which accepts WhatsApp id as argument. It should automatically validate if (@c.us) exists, this will prevent bans.

alan-albuquerque commented 6 years ago

@mukulhase yeah, and this will prevent that the WhatsApp get broken after sended a message with a invalid WhatsApp ID... We really need this feature.... i can do this, but whats is the rule to validade a WhatsApp id? Only require to have the "@c.us" string?

kevinkit commented 6 years ago
def check_ID(contact_id):
    nr = contact_id.split('@')[0]

    if not nr.isdigit():
        raise ValueError("Number contains non number elements before the @ sign")

    elif contact_id[-5:] != '@c.us':
        raise ValueError("Contact Id must end on '@c.us")

here is a fast snippet I was using, I am not really able to implement it due to the lack of my python knowledge and decorators

kevinkit commented 6 years ago

Another way would be to put in a list of allowed country codes. Check if the first number match and if so , the id is allowed

tarun82888 commented 6 years ago

@oltanalkan

i am using nox emulator from last 8 months
my wa working fine not ban..

i do only reply to chat users..

if you using broadcasting the message using this api..than posible to ban

also this api not made for spammer.. due to whats app not like the spammers or broadcasters who send message to non contacts/non your chat

tarun82888 commented 6 years ago

spamming == banned whats-app

kevinkit commented 6 years ago

@tarun82888 since he waits 1-10 seconds it might not be recognized as spam, so it may be an other problem.

However if the same message is sent 20-30 times I would consider it spamming - which should not be supported by the repo and this community

tarun82888 commented 6 years ago

@kevinkit

you was send messages to your chat users or send to unknown wa users?

kevinkit commented 6 years ago

only to known numbers

tarun82888 commented 6 years ago

@kevinkit

please share your codes

kevinkit commented 6 years ago

It is just the echo.py in the examples a little bit modified, nothing more - there is nothin worth sharing and I am not quite sure what you need as a code?

tetradox commented 6 years ago

Do you have a JavaScript solution?

tetradox commented 6 years ago

whether the numbers are registered how can I learn I think this is a query method for javascript

mikkelam commented 6 years ago

wow this is super entitled, why would you tag all these people. Patience dude

cijo7 commented 6 years ago

You can use WhatsApp Web api to find if the WhatsApp number exists

tulssinep commented 6 years ago

@mikkelam tbh I don't think tagging people in this instance is too bad as I would appreciate getting informed about possible bans. However it should've been obvious to him that virtual numbers can cause bans