venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

Avoid block in conversations #905

Open Amirjan opened 9 years ago

Amirjan commented 9 years ago

Hi dears, does I will block if i answer someone has sent me a message and does not have my phone number in contact list.

mgp25 commented 9 years ago

It depends on more things. If you have WhatsApp in your device, you can send messages to numbers you dont have in contact list. And also, you can receive messages without problem

Amirjan commented 9 years ago

I only work with this API, but i want to know if i answer 10 received messages simultaneously , no problem will not happened. I dont know who has my phone in his contact list!!!

mgp25 commented 9 years ago

That is unpredictable. As you are using the API, WA servers now detected you as a Suspicious_Number. Why? Easy, while registering we send specific data, and server side they check how that data was built.

I bypassed that doing a trick. Maybe porting to the API when i have more info.

cry0m1 commented 9 years ago

Hi folks, i also have a WA bot built by this API. It has ussd command list, so any person who have number can write to my bot and send ussd commands to get any text data/pictures/videos. Every 70-100 user ussd requests bot becomes banned (i verify it by registering its number again - it outputs "blocked"). So as i see there is no way for such apps not being blocked?

mgp25 commented 9 years ago

I have a bot 24 hours online that my friends and i use. They have added in their contact list, they send the commands and there isnt any problem. I have my bot running on a raspberry pi. I dont know what type of commands do you have, but maybe if have re-sending option as you send messages through it, it could get banned.

cry0m1 commented 9 years ago

I see, seems the issue is in availability of bot in opponent contact list. My bot has next commands:

cv - sends a text message with CV as response

photos - sends 2-3 images as response

suggest smth - emulate interactive Contact US

no resending messages!

But mostly all users that write to this bot will not save its number to their contact list, now i have added to bot sync of all contacts that wrote him every several hours (including new users). Will see how it will work, i have about 10 sim blocked while experimenting ) No re-registration of blocked sim seems is supported by WA servers. I am a little bit frustrated, koz as i see i didn't broke any WA EULA rules.

thiagosantos commented 9 years ago

i think your numbers were blocked because it's seems they are sending spam to your bot. in a natural way to talk to someone on Whatsapp you should add this number to your cellphone contact list, and therefore WhatsApp will syncronize the cellphone contact with the user list. and than be able to talk on Whatsapp.

so if you created a bot, and are testing this bot with other "bot" you centanly will be blocked, if the message exchange look like spam.

you should always sync the contacts you send/receive message.

try to create a cellphone behavior, and to not think Whatsapp engineers are noobies.

you can not broke any rule on what you did, but broke a cellphone behavior and WhatsApp knows that. :)

cry0m1 commented 9 years ago

The problem is that i am not testing bot with other bots, i test it on real people, who sends sentence garbage to my bot for fun. OK, i will try with contact-sync.