salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 605 forks source link

webhook #821

Closed clusterdevm closed 9 months ago

clusterdevm commented 10 months ago

As an instance I initialize an instance, I inform what the webhook will be, when doing a pm2 reload all it does not load the webhook defined for the instance. How to solve it?

GHO5TMEDO commented 10 months ago

I'm having the exact same issue, all webhook URLs are removed on reload/restart of the server!

GHO5TMEDO commented 10 months ago

I have fixed it by saving webhook URL to a JSON file and retrieving it in sessions.js in the restoreSession function.

cleberlecheta commented 9 months ago

That also buged me out! I found a solution in this issue: https://github.com/salman0ansari/whatsapp-api-nodejs/issues/726

cleberlecheta commented 9 months ago

sessions.js

Hi @GHO5TMEDO can you attached your changed files, so that we can apply the same solution? That would be very helpful these times..

Thank you in advance.

GHO5TMEDO commented 9 months ago

sessions.js

Hi @GHO5TMEDO can you attached your changed files, so that we can apply the same solution? That would be very helpful these times..

Thank you in advance.

Please message me on Telegram @ Mohibrahim22 and I will send you the link to chatgpt conversation with detailed steps xD