This commit is contained in:
Lizandro Guarnizo
2026-01-22 14:10:03 -05:00
parent 74955aef32
commit 2aed2c428c
3 changed files with 62 additions and 16 deletions
+4 -2
View File
@@ -159,11 +159,13 @@ try {
error_log("====================================");
// Si viene reply_to, usar reply con contexto
$operatorId = $_SESSION['admin_user']['id'] ?? null;
if (!empty($input['reply_to'])) {
$replyTo = $input['reply_to'];
$response = $whatsappService->sendTextReply($recipient, $replyTo, $input['message']);
$response = $whatsappService->sendTextReply($recipient, $replyTo, $input['message'], $operatorId ? ['operator_id' => $operatorId] : null);
} else {
$response = $whatsappService->sendTextMessage($recipient, $input['message']);
$response = $whatsappService->sendTextMessage($recipient, $input['message'], $operatorId ? ['operator_id' => $operatorId] : null);
}
break;