Skip to content

Text Status Data DTO Reference

The NjoguAmos\Waha\Dto\TextStatusData represents a WhatsApp text status message.

php
use NjoguAmos\Waha\Facades\Status;
use NjoguAmos\Waha\Dto\TextStatusData;

$data = new TextStatusData(
    text: 'Hello from WhatsApp!',
    backgroundColor: '#38b42f',
    font: 1
);

$result = Status::sendText(session: 'default', data: $data); // TextStatusData

textstring

The status message text content.

php
$result->text; // "Hello from WhatsApp!"

backgroundColorstring

Background color in hex format.

php
$result->backgroundColor; // "#38b42f"

fontint

Font style identifier (1-5).

php
$result->font; // 1

contactsarray|null

Array of chat IDs to send the status to. null if not specified.

php
$result->contacts; // ["[email protected]", "[email protected]"] or null

Released under the MIT License.