Cambio de respuesta de PDF a tabla de texto en búsqueda por nombre del bot

This commit is contained in:
nickpons666
2026-01-31 02:19:46 -06:00
parent a02e77d09f
commit fefd3a8d78

View File

@@ -122,10 +122,8 @@ class TurnoBot {
log_timing("handleUpdate: DB query end");
if ($user) {
log_timing("handleUpdate: user found, sending PDF");
$this->bot->sendMessage($chatId, "Generando PDF de turnos...");
$this->bot->sendPDF($chatId, $user['id']);
log_timing("handleUpdate: PDF sent");
log_timing("handleUpdate: user found, sending text turnos");
$this->bot->sendMessage($chatId, $this->bot->getTurnosAyudante($user['nombre']));
} else {
log_timing("handleUpdate: user not found, getting plain text turnos");
$this->bot->sendMessage($chatId, $this->bot->getTurnosAyudante($text));