Closed samuelrbo closed 5 years ago
Have you tried to use official whatsapp url for new messages? ...whatsapp.com/send?phone=[phone_number]
The project has a method for this purpose, check the Python code.
Have you tried to use official whatsapp url for new messages? ...whatsapp.com/send?phone=[phone_number]
The project has a method for this purpose, check the Python code.
I'll try. Thanks.
That's the point, Whatsapp knows that it's uncommon for someone to send so many messages to people they've never talked to each other before so it considers as spam/marketing junk pretty fast. Bot's are not wrong from Whatsapp's point of view but you should only reply and never start a new conversation.
try:
That’s worked for me.
What has worked so far for sending up to 120 new messages/hour ~and I hope Zuckerberg doesn't come here~:
Dos and Don'ts:
30 ~ 60 seconds
and then send the second message00@c.us
a official whatsapp advertising account will get the message, it's like selling cocaine to the police@c.us
, some errors are logged as wellfrom 5 to 10 seconds
"typing..."
status, wait a few seconds and then send the messageonline
to send messagesHave in mind:
(5 - 10)
will definitely get you bannedLet's say you just got banned but you won't give up:
12 ~ 36 hours
after this first message to start sending more, on the other hand some people will say that if you just register a phone and don't send messages for a day, you will be banned as soon as you start sending messages. I personally send the first message, wait a few hours and then start sending messagesWhat happens if you send an email to Whatsapp asking the reason you were banned? There's a remote chance of being unbanned, I have cases where the number was unbanned after 1 day and cases that it has been months and it's still banned. Their reply time is quick but the answer is final and immutable:
## - WhatsApp Support - ##
Hello,
Thanks for getting in touch with us!
Your WhatsApp account has been disabled because you have violated our Terms of Service when using an unauthorized app or an unsupported device.
Please remove the application and install an authorized version on a compatible device at: www.whatsapp.com/download
Please keep in mind that we do not allow support for unofficial or jailbroken / rooted clients (including emulators) and unsupported devices.
To use WhatsApp on your computer, visit our website from your computer's browser. Then open WhatsApp and scan the QR code using the WhatsApp application on your phone (look for WhatsApp Web in the WhatsApp settings on your device). WhatsApp can only be installed on your computer if you are using Windows operating systems 8.0 and higher or Mac OSX.9 and above. If you are experiencing problems installing WhatsApp on a supported operating system, disable your anti-virus and try again.
You have the option to access WhatsApp through your browser here if you are using non-compatible operating systems.
Your account will be permanently disabled, and without the possibility of appeal if you continue to violate our Terms of Service.
Cheers,
Roshan
WhatsApp Support Team
Take a look at our FAQ.
Final Considerations and Conclusion: After a few months trying different ways of sending messages I can only say all that's left to do right now is agreeing with Whatsapp's policy, not sending spam messages and always wait for the other person to contact you first, you could make it by sending an SMS to the person with a link to start a chat on Whatsapp with you. I'm not using this to send junk spam and I blame who uses this API for this purpose. Everyone I contact has previously accepted it irl but whatsapp doesn't really care. I will be more than happy to keep this up-to-date with any suggestions that you have to add here. All of the above text is meant for a large scale production environment and may not work for tomorrow, who knows if Whatsapp will start to brutally ban anyone that doesn't pay for their official API. If you just ignore all of it and it still works, you probably have a low flow of messages and that's perfectly acceptable
Thank you guys.
I'll do a refactoring of this functionality, with the points you've shown me, not to be banned again.
Guys, I'll close this issue, after I test I'll put here the conclusion. Thanks again.
@lfdelphino thanks a lot for all the tips.
I couldn't find where we can send a "typing..." status before sending the message tho...could you please assist me with that?
Take a look at the following:
Hi guys, how do you going?
Last week I'd been trying to send message for new users using:
const chatId = new Store.UserConstructor(user.country_code+user.phone+'@c.us'); Store.Chat.find(chatId).then(chat => { chat.sendMessage(welcome_message); });
I get the new users by web service, but, when I'm sending the messages for 20 persons I get banned :(
To test I'm using a new number for Whatsapp and my test base I'm using the team numbers to send the welcome message.
I added all numbers to whatsapp contact list but I'm still getting banned. I tryed to send: