Deploy: 2026-06-24 13:42:28
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user