open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.13k stars 598 forks source link

Easy API not sending messages. #902

Closed muzammilgit closed 4 years ago

muzammilgit commented 4 years ago

Easy API not sending messages. is license key required to send message. i am using docker

smashah commented 4 years ago

@muzammilgit did you open the api docs? You should be able to send messages using sendText to a contact

muzammilgit commented 4 years ago

yes i checked, but its not working

smashah commented 4 years ago

@muzammilgit did this issue just start happening or is this the first time you tried it?

muzammilgit commented 4 years ago

i just tried first, its sending now, only saved contact are allowed to send message?

smashah commented 4 years ago

@muzammilgit Yes. If you want to start a new chat I suggest reading this:

https://open-wa.github.io/wa-automate-nodejs/pages/The%20Client/licensed-features.html#sending-messages-to-non-contact-numbers

My suggestion would be to set up a website where people can explicitly start a chat with you. That way you are least likely to get reported for spam/get your account banned.

smashah commented 4 years ago

Please fill the issue template in the future. Thanks

max-programming commented 2 years ago

@smashah Can I not send messages to numbers not saved in my contact? Or can I message any number?

For some reason a few days ago I saw a message that number is not in your contacts, get a subscription. Something like that. I dynamically (using template literals) passed the number to sendText at that time and I think that's why it didn't work

smashah commented 2 years ago

@max-programming yes you need a "restricted license key" to send messages to unknown numbers. However you can also receive this error if the number is wrong or doesn't exist