Skip to content

Lid Data DTO Reference

The NjoguAmos\Waha\Dto\LidData represents a response from WAHA containing the LID and phone number associated with a chat ID.

php
use NjoguAmos\Waha\Facades\Contact;
use NjoguAmos\Waha\Dto\LidData;

$response = Contact::getLid(phone: '[email protected]');
$dto = $response->dtoOrFail(); // LidData

lidstring|null

The LID for the given phone number. This can be null if no LID is found.

php
$dto->lid; // "123123123@lid" or null

pnstring

The phone number (chat ID) for the given LID.

php
$dto->pn; // "[email protected]"

Released under the MIT License.