From 366ebd6253add142d57c4fe793dcb068df4fdfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Thu, 20 Feb 2025 20:21:21 -0300 Subject: [PATCH] Workaround network problems when loading projects --- src/pycamp_bot/commands/projects.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pycamp_bot/commands/projects.py b/src/pycamp_bot/commands/projects.py index 035f508..ffdfa1b 100644 --- a/src/pycamp_bot/commands/projects.py +++ b/src/pycamp_bot/commands/projects.py @@ -57,6 +57,13 @@ async def naming_project(update, context): username = update.message.from_user.username name = update.message.text + if name == '/cargar_proyecto': + await context.bot.send_message( + chat_id=update.message.chat_id, + text="Hubo un problema de conectividad, volvé a ingresar el nombre" + ) + return NOMBRE + new_project = Project(name=name) current_projects[username] = new_project