sulla icon indicating copy to clipboard operation
sulla copied to clipboard

Create chat for whatsapp contact saved in contacts

Open FelixWeichselgartner opened this issue 4 years ago • 1 comments

Hi,

I'm trying to send a whatsapp message to a contact with given chatId that is saved in my phones contacts (and retrievable with getContact or getAllContacts) but without an active chat yet.

So far I tried:

Send message to new contacts (non-added)
Also see Whatsapp links Be careful since this can pretty much could cause a ban from Whatsapp, always keep your contacts updated!

await client.sendMessageToId('[email protected]', 'Hello from sulla! 👋');

but this does not work for me. Also i dont really get the difference between sendText and sendMessageToId as the parameters seem to be the same.

Furthermore I could find a method like create chat or chatId or anything similar.

Does anybody have thoughts on that? Any help is appreciated. TY very much.

FelixWeichselgartner avatar May 07 '20 17:05 FelixWeichselgartner

the repository is deprecated use

Install npm i @s2click/venom https://github.com/s2click/venom

joedutra avatar Jun 06 '20 23:06 joedutra