open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
342 stars 74 forks source link

Can you create a conversation from a number that I do not have registered as a contact? #19

Closed 3dluis closed 4 years ago

3dluis commented 4 years ago

Can you create a conversation from a number that I do not have registered as a contact?

I have made a test from whatsapp web and it is possible to do it.

window.WAPI.sendMessage = function (id, message, done) { var chat = WAPI.getChat(id);

if (chat === undefined){
    let userId = new window.Store.UserConstructor(id, {intentionallyUsePrivateConstructor: true});
    chat = WAPI.getChat(userId);
}
mrodal commented 4 years ago

Hey, @3dluis for that feature a license key is required. Check point 2 here

This decision was made to mitigate the risk of noobs spamming and misusing the application, as well as to support maintainers. When requesting a license key, the user has to specify the reason that he needs it, this way we can keep some kind of control over this feature and avoid misuse to some extent.