This commit is contained in:
lizandrogd
2026-01-21 02:22:29 -05:00
parent 3fffb0d023
commit b1961f0116
35 changed files with 1006 additions and 122 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
require_once __DIR__ . '/../config/config_enhanced.php';
require_once __DIR__ . '/../config/config.php';
require_once __DIR__ . '/../api/webhook.php';
header('Content-Type: application/json; charset=utf-8');
try {
$w = new WhatsAppWebhook();
echo json_encode(['ok' => true, 'message' => 'Webhook class instantiated successfully']);
} catch (Throwable $t) {
http_response_code(500);
error_log('[debug_webhook_init] Throwable: ' . $t->getMessage());
error_log($t->getTraceAsString());
echo json_encode(['ok' => false, 'error' => $t->getMessage(), 'trace' => $t->getTraceAsString()]);
}