Add a configuration option to keep sessions alive
It's frustrating that sessions connect every month. I'd suggest a config option (via env var, per-session or whatever) that allows configuring something to keep sessions alive by toggling the presence status on/off. Maybe something like a cronjob syntax? Idk
WAHA_KEEPALIVE_CRONJOB=5 4 * * *
You can set a session as online using https://waha.devlike.pro/docs/how-to/presence/
POST /api/{session}/presence
{
"presence": "online"
}
I am aware, I am talking about a feature that auto-does this per month to not stay constantly online, just make sure the session does not disconnect
I am aware, I am talking about a feature that auto-does this per month to not stay constantly online, just make sure the session does not disconnect
If you want to keep the connection constantly open, you won't receive notifications on your device.
Use: POST /api/{session}/presence for your personal preferences