Session Data DTO Reference
The NjoguAmos\Waha\Dto\SessionData represents WhatsApp session information.
php
use NjoguAmos\Waha\Enums\SessionStatus;
use NjoguAmos\Waha\Facades\Session;
use NjoguAmos\Waha\Dto\SessionData;
$session = Session::get()->dtoOrFail(); // SessionDataname → string
The session name.
php
$session->name; // "default"status → SessionStatus
The current status of the session.
php
$session->status; // SessionStatus::WORKINGconfig → SessionConfigData or null
Session configuration including proxy and webhooks.
php
$session->config?->debug; // falseme → SessionMeData or null
Information about the authenticated user.
php
$session->me?->id; // "[email protected]"
$session->me?->pushName; // "WAHA"engine → SessionEngineData or null
Information about the engine being used.
php
$session->engine?->engine; // "NOWEB"presence → Presence or null
The current presence status of the session.
php
use NjoguAmos\Waha\Enums\Presence;
$session->presence; // Presence::OFFLINEapps → array
The applications associated with the session.
php
$session->apps; // []assignedWorker → string or null
The ID of the worker assigned to the session.
php
$session->assignedWorker; // "worker-1"timestamps → array or null
Various timestamps associated with session activity.
php
$session->timestamps['activity']; // 1774197185628