Update BotService.php

This commit is contained in:
Lizandro Guarnizo
2026-02-03 23:17:22 -05:00
parent e722935ac4
commit 603872b1bc
-17
View File
@@ -1193,23 +1193,6 @@ class BotService {
} catch (Exception $e) {
error_log('finishAttendConversation: releaseHold failed: ' . $e->getMessage());
}
// Enviar automáticamente el menú de horario_asesor después de finalizar
try {
$horarioMenu = $this->db->fetch(
"SELECT id FROM menus WHERE name = :name AND is_active = 1",
['name' => 'horario_asesor']
);
if ($horarioMenu && !empty($horarioMenu['id'])) {
$this->showMenu($phoneNumber, $horarioMenu['id']);
error_log("[BotService] Sent horario_asesor menu to {$phoneNumber} after finishing attend");
} else {
error_log("[BotService] horario_asesor menu not found for {$phoneNumber}");
}
} catch (Exception $e) {
error_log('Failed to send horario_asesor menu: ' . $e->getMessage());
}
} catch (Exception $e) {
error_log('finishAttendConversation failed: ' . $e->getMessage());
throw $e;