Deploy: 2026-06-24 13:42:28

This commit is contained in:
Hamza-Ayed
2026-06-24 13:42:28 +03:00
parent e0c7f39ff6
commit 7085065fbe
2 changed files with 24 additions and 5 deletions

View File

@@ -241,7 +241,7 @@ class ConversationFlowEngine
?string $audioBase64 = null,
?string $mimetype = null,
?string $imageBase64 = null
): void {
): bool {
$gatewayUrl = rtrim(getenv('WHATSAPP_GATEWAY_URL') ?: 'http://localhost:3722', '/');
if (substr($gatewayUrl, -4) === '/api') {
$sendUrl = $gatewayUrl . '/messages/send';
@@ -315,5 +315,7 @@ class ConversationFlowEngine
'status' => $status,
'error_message' => $errorMsg
]);
return $status === 'sent';
}
}