WAHA 2023.6 - Advanced session control
Hey there!
We've got some cool new features in the latest release of WAHA 2023.6 - Advanced session control!
Restart all sessions
We've made it easier to restart all your sessions.
Instead of having to manually restart them every time the container stops and starts again, you can now set a special environment variable called WHATSAPP_RESTART_ALL_SESSIONS=True. This will automatically restart all your saved sessions that were previously stopped.
Just remember that this will start all stopped sessions, not just the ones that were working before the restart. You can manage your session list by using the POST /api/session/stop request with the logout: True parameter or by calling POST /api/session/logout to remove stopped sessions.
You can see all sessions, including stopped ones, in the GET /api/sessions/all=True response.
Logout from a session
We've added the ability to logout from sessions.
While you can't force logout from a session, you can control your started sessions and use the Restart all sessions feature by logging out from all unused sessions. You can do this with the POST /api/sessions/logout request or by adding the `logout: True` field to the POST /api/sessions/stop request.
Start certain sessions at the start
We've made it possible to start certain sessions automatically.
If you always want to start some sessions at the beginning, you can set a list of sessions in the WHATSAPP_START_SESSION=session1,session2 environment variable and WAHA will start them, no matter what status they have.
Docker compose configuration example
Check out our Docker compose configuration example in our How to Deploy guide to get started with WAHA!
If you have any questions or feedback, please let us know on our GitHub page. We're always looking for ways to improve WAHA and make it even more useful for you. Thanks for using WAHA!
You'll find the release's changelog here