@@ -57,25 +57,32 @@ async def naming_project(update, context):
5757 username = update .message .from_user .username
5858 name = update .message .text
5959
60- new_project = Project (name = name )
61- current_projects [username ] = new_project
60+ if name != '/cargar_proyecto' :
61+ new_project = Project (name = name )
62+ current_projects [username ] = new_project
6263
63- await context .bot .send_message (
64- chat_id = update .message .chat_id ,
65- text = "Estamos cargando tu proyecto: {}!" .format (username )
66- )
67- await context .bot .send_message (
68- chat_id = update .message .chat_id ,
69- text = "Tu proyecto se llama: {}" .format (name )
70- )
71- await context .bot .send_message (
72- chat_id = update .message .chat_id ,
73- text = """Cual es el nivel de dificultad?
74- 1 = newbie friendly
75- 2 = intermedio
76- 3 = python avanzado"""
77- )
78- return DIFICULTAD
64+ await context .bot .send_message (
65+ chat_id = update .message .chat_id ,
66+ text = "Estamos cargando tu proyecto: {}!" .format (username )
67+ )
68+ await context .bot .send_message (
69+ chat_id = update .message .chat_id ,
70+ text = "Tu proyecto se llama: {}" .format (name )
71+ )
72+ await context .bot .send_message (
73+ chat_id = update .message .chat_id ,
74+ text = """Cual es el nivel de dificultad?
75+ 1 = newbie friendly
76+ 2 = intermedio
77+ 3 = python avanzado"""
78+ )
79+ return DIFICULTAD
80+ else :
81+ await context .bot .send_message (
82+ chat_id = update .message .chat_id ,
83+ text = "Hubo un problema de conectividad, volvé a ingresar el nombre"
84+ )
85+ return NOMBRE
7986
8087
8188async def project_level (update , context ):
0 commit comments