Deploy: 2026-05-23 02:09:23

This commit is contained in:
Hamza-Ayed
2026-05-23 02:09:23 +03:00
parent 7ae5964ce1
commit b5e4f48be5
4 changed files with 27 additions and 26 deletions

View File

@@ -213,7 +213,8 @@ class ConversationFlowEngine
string $message,
?string $mediaUrl = null,
?string $audioBase64 = null,
?string $mimetype = null
?string $mimetype = null,
?string $imageBase64 = null
): void {
$gatewayUrl = rtrim(getenv('WHATSAPP_GATEWAY_URL') ?: 'http://localhost:3722', '/');
if (substr($gatewayUrl, -4) === '/api') {
@@ -239,6 +240,9 @@ class ConversationFlowEngine
if ($mimetype !== null) {
$payloadData['mimetype'] = $mimetype;
}
if ($imageBase64 !== null) {
$payloadData['image'] = $imageBase64;
}
$payload = json_encode($payloadData);