Actualización del bot de Telegram: Renombrado de botón PDF y eliminación de menú al solicitarlo

This commit is contained in:
nickpons666
2026-01-31 02:17:53 -06:00
parent 959b5e3596
commit a02e77d09f
2 changed files with 3 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ class TelegramBot {
['text' => 'Semana Actual', 'callback_data' => 'semana_actual'] ['text' => 'Semana Actual', 'callback_data' => 'semana_actual']
], ],
[ [
['text' => '📄 Mi PDF', 'callback_data' => 'mi_pdf'] ['text' => '📄 Horarios PDF', 'callback_data' => 'mi_pdf']
], ],
[ [
['text' => '🔍 Buscar por Nombre', 'callback_data' => 'buscar_nombre'] ['text' => '🔍 Buscar por Nombre', 'callback_data' => 'buscar_nombre']

View File

@@ -165,6 +165,7 @@ class TurnoBot {
case 'mi_pdf': case 'mi_pdf':
$this->bot->answerCallback($callbackId, 'Generando PDF...'); $this->bot->answerCallback($callbackId, 'Generando PDF...');
$this->bot->deleteMessage($chatId, $messageId);
$this->bot->sendPDFGeneral($chatId); $this->bot->sendPDFGeneral($chatId);
break; break;
@@ -196,7 +197,7 @@ class TurnoBot {
$mensaje .= "Selecciona una opcion del menu:\n\n"; $mensaje .= "Selecciona una opcion del menu:\n\n";
$mensaje .= "Ver Turnos - Tabla completa de asignaciones\n"; $mensaje .= "Ver Turnos - Tabla completa de asignaciones\n";
$mensaje .= "Semana Actual - Quien tiene turno esta semana\n"; $mensaje .= "Semana Actual - Quien tiene turno esta semana\n";
$mensaje .= "Mi PDF - Descargar horarios en PDF\n"; $mensaje .= "Horarios PDF - Descargar horarios en PDF\n";
$mensaje .= "Buscar por Nombre - Consultar un ayudante especifico\n"; $mensaje .= "Buscar por Nombre - Consultar un ayudante especifico\n";
$mensaje .= "Mi Turno - Ver tu proximo turno"; $mensaje .= "Mi Turno - Ver tu proximo turno";