Deploy: 2026-05-21 18:24:56
This commit is contained in:
@@ -40,10 +40,11 @@ class WhatsAppController extends BaseController
|
||||
WhatsAppSession::updateState($session['id'], ['status' => 'connecting']);
|
||||
|
||||
// Call Baileys Node.js Service on port 3722
|
||||
$appUrl = rtrim(getenv('APP_URL') ?: 'https://nabeh.intaleqapp.com', '/');
|
||||
$nodeUrl = 'http://127.0.0.1:3722/api/sessions/start';
|
||||
$payload = json_encode([
|
||||
'session_key' => $session['session_key'],
|
||||
'webhook_url' => getenv('APP_URL') . '/api/whatsapp/webhook'
|
||||
'webhook_url' => $appUrl . '/api/whatsapp/webhook'
|
||||
]);
|
||||
|
||||
$ch = curl_init($nodeUrl);
|
||||
|
||||
Reference in New Issue
Block a user