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";