omegaes / Whatsapp-API

An Android Library with demo application, to send media and text messages via Whatsapp on rooted device
http://abdul.mega4tech.com/
GNU Lesser General Public License v3.0
153 stars 78 forks source link

Chat list update problem #3

Open TazmanOne opened 7 years ago

TazmanOne commented 7 years ago

After sending some people text message, application redirect to WhatsApp? Chat list is not updated, still old dialogs, but if I open dialog i saw last sended messages. How get updated chat list? Can we send message from non-contact list people?

tayyab18 commented 5 years ago

string phonenumber="123456789"; WContact contact = new WContact(phonenumber+"@s.whatsapp.net", phonenumber+"@s.whatsapp.net");

WhatsappApi.getInstance().sendMessage(contact, message, this, new SendMessageListener() {

Create a contact type WContact . and pass this contact to sendMessage function