danielcardeenas / whatsapp-framework

⚗️Whatsapp python api
1.16k stars 363 forks source link

How to sync new contacts? #162

Open pablogus opened 6 years ago

pablogus commented 6 years ago

Hi all!

I want to generate some notifications to a specific list of contacts, how can I synchronize or add a contact with whatsapp-framework before sending?

Is there any way to previosuly check if the destination phone has whatsapp installed?

Thanks! Regards,

ffcc commented 6 years ago

Hi @pablogus!

The only way I found to synchronize new contacts is by calling back stack.broadcastEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECT)) I tried calling layer._sendIq(GetSyncIqProtocolEntity(contacts)) but doesn't worked.