Star Message
Star or unstar a message.
Usage
The Message facade's starMessage method may be used to star or unstar a message.
php
use NjoguAmos\Waha\Facades\Message;
use NjoguAmos\Waha\Dto\MessageStarData;
$data = new MessageStarData(
chatId: '[email protected]',
messageId: '[email protected]_BAE6A33293978B16',
star: true,
);
/** @var \Saloon\Http\Response $response */
$response = Message::starMessage(data: $data);Response
The response returned by the starMessage method is an instance of Saloon\Http\Response. You may use the json method to retrieve the response as an array:
php
/** @var \Saloon\Http\Response $response */
$response->status(); // 201
$response->json(); // ["status" => "success", ...]Engines
| WEBJS | WPP | NOWEB | GOWS |
|---|---|---|---|
| ✔️ | ✔️ | ✔️ |