diff --git a/app/Services/TelegramBotService.php b/app/Services/TelegramBotService.php index 786dd84..02dd64e 100755 --- a/app/Services/TelegramBotService.php +++ b/app/Services/TelegramBotService.php @@ -56,14 +56,6 @@ class TelegramBotService 'leido' => false, ]); $conv->update(['ultimo_mensaje_at' => now()]); - - if ($conv->estado === 'agente') { - // No interrumpir si el bot está esperando input específico del usuario - $inputSteps = ['await_email', 'await_otp', 'await_nombre', 'await_celular', 'await_amount']; - if (! in_array($state['step'] ?? '', $inputSteps)) { - return; // Human agent is handling this - } - } } } @@ -1292,13 +1284,6 @@ class TelegramBotService return; } - if ($state['conv_id'] ?? null) { - $conv = ChatConversation::find($state['conv_id']); - if ($conv && $conv->estado === 'agente') { - return; - } - } - // Intentar detectar intención con Gemini antes de mostrar menú $texto = $state['data']['last_text'] ?? ''; if ($texto) {