Skip to content

Set Profile Status

Set your WhatsApp profile status (About).

Usage

php
use NjoguAmos\Waha\Facades\Profile;

/** @var \Saloon\Http\Response $response */
$response = Profile::setStatus(status: 'Hey there! I am using WhatsApp.');
php
use NjoguAmos\Waha\Facades\Profile;

/** @var \Saloon\Http\Response $response */
$response = Profile::setStatus(status: 'Available', session: 'my-session');

Parameters

ParameterTypeRequiredDescription
statusstringYesThe new profile status (About)
sessionstringNoSession name (defaults to waha.session config)

Response

The response returned by the setStatus method is an instance of Saloon\Http\Response:

php
/** @var \Saloon\Http\Response $response */

$response->status(); // 200
$response->json();   // ["success" => true]

Engines

WEBJSWPPNOWEBGOWS

References

Released under the MIT License.