This commit is contained in:
lizandrogd
2026-01-21 01:02:17 -05:00
parent 4e3e02111b
commit 87b89b52a5
14 changed files with 387 additions and 36 deletions
+9 -3
View File
@@ -155,10 +155,16 @@ try {
error_log("=== DEBUG WHATSAPP TEXT MESSAGE ===");
error_log("Recipient: " . $recipient);
error_log("Message: " . $input['message']);
error_log("Method: sendTextMessage()");
error_log("Method: sendTextMessage()/sendTextReply()");
error_log("====================================");
$response = $whatsappService->sendTextMessage($recipient, $input['message']);
// Si viene reply_to, usar reply con contexto
if (!empty($input['reply_to'])) {
$replyTo = $input['reply_to'];
$response = $whatsappService->sendTextReply($recipient, $replyTo, $input['message']);
} else {
$response = $whatsappService->sendTextMessage($recipient, $input['message']);
}
break;
case 'template':