Skip to content

Block Contact

Block contact on WhatsApp.

Usage

The Contact facade's block method may be used to block a contact.

php
use NjoguAmos\Waha\Facades\Contact;

/** @var \Saloon\Http\Response $response */
$response = Contact::block(contactId: '11231231231');

Response

The response returned by the block method is an instance of Saloon\Http\Response.

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

$response->status(); // 200
$response->json();   // []

Engines

WEBJSWPPNOWEBGOWS

References

Released under the MIT License.