'whatsapp_business_account', 'entry' => [ [ 'changes' => [ [ 'field' => 'messages', 'value' => [ 'messages' => [ [ 'from' => '573019999900', 'id' => 'NTFTEST1', 'timestamp' => time(), 'type' => 'text', 'text' => ['body' => 'Notificacion test'] ] ] ] ] ] ] ] ]; $w = new WhatsAppWebhook(); $w->processPayload($payload); $db = Database::getInstance(); $rows = $db->fetchAll('SELECT * FROM notifications ORDER BY id DESC LIMIT 5'); foreach ($rows as $r) echo json_encode($r) . "\n";