Update BotService.php
This commit is contained in:
@@ -1193,23 +1193,6 @@ class BotService {
|
|||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
error_log('finishAttendConversation: releaseHold failed: ' . $e->getMessage());
|
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) {
|
} catch (Exception $e) {
|
||||||
error_log('finishAttendConversation failed: ' . $e->getMessage());
|
error_log('finishAttendConversation failed: ' . $e->getMessage());
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|||||||
Reference in New Issue
Block a user