yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

How to sync keys (group keys) in layer.py

Open LabtronicsDesign opened this issue 9 years ago • 5 comments

Got an issue with some numbers not receiving any messages (in a group - says "waiting for this message" ) due to altered keys that need to be re-synced. How can I do this without deleting axototl.db and not using the cli. Is there a function I can place in the layer.py ? How do I do that?

LabtronicsDesign avatar Nov 25 '17 20:11 LabtronicsDesign

Check the demo, we have the command to synchronize (/sync) messages and to get keys from a Jid (/keys get).

brunaoalx avatar Nov 27 '17 19:11 brunaoalx

@BRNALX i am afraid that won't work in this case as I'm not using the cli. I just want a sync function in the layer.py that can be called on connection/invalid key

LabtronicsDesign avatar Nov 27 '17 19:11 LabtronicsDesign

You should understand how Cli's Sync and Keys methods work and create in your project

brunaoalx avatar Nov 27 '17 19:11 brunaoalx

Try:

In layers\protocol_contacts\protocolentities\iq_sync_get.py

call GetSyncIqProtocolEntity

brunaoalx avatar Nov 27 '17 19:11 brunaoalx

For now I have solved the issue by using an upgraded framework https://github.com/danielcardeenas/whatsapp-framework In there you will find GetSyncIqProtocolEntity in the layer.py called onSucess. There's also a shell script clean.sh to find and delete the axototl.db if need be as a last resort.

LabtronicsDesign avatar Nov 29 '17 13:11 LabtronicsDesign