Skip to content

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(); // SessionData

namestring

The session name.

php
$session->name; // "default"

statusSessionStatus

The current status of the session.

php
$session->status; // SessionStatus::WORKING

configSessionConfigData or null

Session configuration including proxy and webhooks.

php
$session->config?->debug; // false

meSessionMeData or null

Information about the authenticated user.

php
$session->me?->id; // "[email protected]"
$session->me?->pushName; // "WAHA"

engineSessionEngineData or null

Information about the engine being used.

php
$session->engine?->engine; // "NOWEB"

presencePresence or null

The current presence status of the session.

php
use NjoguAmos\Waha\Enums\Presence;

$session->presence; // Presence::OFFLINE

appsarray

The applications associated with the session.

php
$session->apps; // []

assignedWorkerstring or null

The ID of the worker assigned to the session.

php
$session->assignedWorker; // "worker-1"

timestampsarray or null

Various timestamps associated with session activity.

php
$session->timestamps['activity']; // 1774197185628

Released under the MIT License.