waha icon indicating copy to clipboard operation
waha copied to clipboard

Add a configuration option to keep sessions alive

Open gergesh opened this issue 10 months ago • 3 comments

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 * * *

gergesh avatar Feb 02 '26 00:02 gergesh

You can set a session as online using https://waha.devlike.pro/docs/how-to/presence/

POST /api/{session}/presence
{
  "presence": "online"
}

patron:PRO

devlikepro avatar Feb 02 '26 06:02 devlikepro

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

gergesh avatar Feb 02 '26 07:02 gergesh

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

patron:PLUS

yekdev avatar Feb 02 '26 23:02 yekdev