open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.08k stars 592 forks source link

Update patches without restarting session 🪄🔄 #2717

Open smashah opened 2 years ago

smashah commented 2 years ago

live patches

t0g3pii commented 1 year ago

Idea: Check every X (30?) minute for an Update Download the new update while runtime (maybe with an event? onPatchUpdate()) in that event users could use client.applyNewPatch() or you force the new Patch with the popup stuff coming from whatsapp itself where you need to inject again anyway (just delete me if you had already ideas how to do this)

smashah commented 1 year ago

I was thinking along the lines of:

I thought this was a nice-to-have but with recent concerning reports about long launch times I might have to prioritise this.

One downside is that every re-patch will require a new license request. So that latency also needs to be taken into consideration.