Documentation Messaging API

Receiving Messages

Send text, media, location, and interactive messages.

Receiving Messages

Learn how to receive and process incoming WhatsApp messages.

Configure Webhook

// config/whatsapp.php
'webhook' => [
    'url' => env('WHATSAPP_WEBHOOK_URL'),
    'verify_token' => env('WHATSAPP_WEBHOOK_VERIFY_TOKEN'),
],

Handle Incoming Messages

use ScriptDevelop\WhatsappManager\Events\TextMessageReceived;

Event::listen(TextMessageReceived::class, function ($event) {
    $message = $event->message;
    $from = $event->from;
    // Process message
});

πŸ’‘ Full Documentation<br />
For complete webhook setup and message processing, see the Complete Messages Documentation and Webhook Documentation.

Share this page