Cambio de respuesta de PDF a tabla de texto en búsqueda por nombre del bot
This commit is contained in:
@@ -122,10 +122,8 @@ class TurnoBot {
|
|||||||
log_timing("handleUpdate: DB query end");
|
log_timing("handleUpdate: DB query end");
|
||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
log_timing("handleUpdate: user found, sending PDF");
|
log_timing("handleUpdate: user found, sending text turnos");
|
||||||
$this->bot->sendMessage($chatId, "Generando PDF de turnos...");
|
$this->bot->sendMessage($chatId, $this->bot->getTurnosAyudante($user['nombre']));
|
||||||
$this->bot->sendPDF($chatId, $user['id']);
|
|
||||||
log_timing("handleUpdate: PDF sent");
|
|
||||||
} else {
|
} else {
|
||||||
log_timing("handleUpdate: user not found, getting plain text turnos");
|
log_timing("handleUpdate: user not found, getting plain text turnos");
|
||||||
$this->bot->sendMessage($chatId, $this->bot->getTurnosAyudante($text));
|
$this->bot->sendMessage($chatId, $this->bot->getTurnosAyudante($text));
|
||||||
|
|||||||
Reference in New Issue
Block a user