Deploy: 2026-05-23 02:09:23
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user