Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
625 stars 183 forks source link

How to send message by contact no #338

Closed amogsiddh closed 1 year ago

amogsiddh commented 1 year ago

Please illustrate the code for sending message by contact no. I can't understand the javadoc.

Auties00 commented 1 year ago

Please illustrate the code for sending message by contact no. I can't understand the javadoc.

var recipient = ContactJid.of(...); whatsapp.sendMessage(recipient, "Hello");

Replace the dots with the full phone number(countrycodephonenumber)