From 8e61d7d87f5a90f798ee80cf6c72ad8c10571852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Rold=C3=A1n=20Piju=C3=A1n?= Date: Sat, 23 Apr 2022 10:27:08 +0200 Subject: [PATCH] Pasar a siguiente pregunta si acertamos --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 290d7d2..aece578 100644 --- a/bot.py +++ b/bot.py @@ -123,7 +123,7 @@ def select_option_callback_handler(call): question = find_question(test, q) answer_reply = check_answer(question, answer) bot.answer_callback_query(call.id, answer_reply) - if answer_reply: + if answer_reply == '✅ Correcto': question = find_question(test, eval(q+'+1')) keyboard = generate_test_keyboard(question, test) txt = "Test: {}\nPregunta: {}\n\n{}"