danielcardeenas / whatsapp-framework

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

Not replying #230

Closed x-frst closed 5 years ago

x-frst commented 5 years ago

It's been almost 5 months since my bot was running fine, but suddenly it stopped working! I registered on WhatsApp and then re-registered on yowsup but still it's not replying and yeah I also tried ./clean.sh nothing worked! Please help..

jhonarodriguez commented 5 years ago

If you have updated the version of whatsapp confome, what is done by daniel?

The same thing happened to me, with the ./clean.sh it did not work, it was just to update the version of whatsapp and there is to run the ./clean.sh

x-frst commented 5 years ago

update version of whatsapp what do u mean please explain?

jhonarodriguez commented 5 years ago

There are 2 files in the kernel that you must change according to the last commit made by Daniel

Last Commit

The files that you must change are:

/usr/local/lib/python3.5/site-packages/yowsup2-2.5.2-py3.5.egg/yowsup/yowsup/env/env_android.py

/usr/local/lib/python3.5/site-packages/yowsup2-2.5.2-py3.5.egg/yowsup/env/env_android.py

You must change the lines

_MD5_CLASSES

_VERSION
x-frst commented 5 years ago

Hello, I've updated those lines in the following locations as well as in whatsapp-framework folder env but still not replying not even delivered!

jhonarodriguez commented 5 years ago

have you tried to restart the entire server?

Use the command

sudo ./clean.sh

jhonarodriguez commented 5 years ago

Or it would be that you reinstall the framework with ./setup.sh

x-frst commented 5 years ago

yes I've tried ./clean.sh and now I am getting Stream Error type: ack {'ack': None} this msg

jhonarodriguez commented 5 years ago

The last option would be to return to register the number in a real physical device, and use it for a while while the messages arrive, soon it will crasheo in some message.

Then you register it again on the server.

x-frst commented 5 years ago

I tried that also and you can read my issue again I've mentioned it too

x-frst commented 5 years ago

@elchory96 Thanks for helping I have re-registered on whatsapp and then on server and then used ./clean.sh and it worked! 😀

Problem was the old version of whatsapp and MD5

ngethe commented 5 years ago

There are 2 files in the kernel that you must change according to the last commit made by Daniel

Last Commit

The files that you must change are:

/usr/local/lib/python3.5/site-packages/yowsup2-2.5.2-py3.5.egg/yowsup/yowsup/env/env_android.py

/usr/local/lib/python3.5/site-packages/yowsup2-2.5.2-py3.5.egg/yowsup/env/env_android.py

You must change the lines

_MD5_CLASSES

_VERSION

What the are we to change this values to ?