From a02e77d09f696863a975861a536de6f9d3527ddd Mon Sep 17 00:00:00 2001 From: nickpons666 Date: Sat, 31 Jan 2026 02:17:53 -0600 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20del=20bot=20de=20Telegram:?= =?UTF-8?q?=20Renombrado=20de=20bot=C3=B3n=20PDF=20y=20eliminaci=C3=B3n=20?= =?UTF-8?q?de=20men=C3=BA=20al=20solicitarlo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/TelegramBot.php | 2 +- bot/webhook.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/TelegramBot.php b/bot/TelegramBot.php index 41cc910..d8d67ff 100755 --- a/bot/TelegramBot.php +++ b/bot/TelegramBot.php @@ -98,7 +98,7 @@ class TelegramBot { ['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'] diff --git a/bot/webhook.php b/bot/webhook.php index a10dad1..5e40426 100755 --- a/bot/webhook.php +++ b/bot/webhook.php @@ -165,6 +165,7 @@ class TurnoBot { case 'mi_pdf': $this->bot->answerCallback($callbackId, 'Generando PDF...'); + $this->bot->deleteMessage($chatId, $messageId); $this->bot->sendPDFGeneral($chatId); break; @@ -196,7 +197,7 @@ class TurnoBot { $mensaje .= "Selecciona una opcion del menu:\n\n"; $mensaje .= "Ver Turnos - Tabla completa de asignaciones\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 .= "Mi Turno - Ver tu proximo turno";