Pasar a siguiente pregunta si acertamos
This commit is contained in:
2
bot.py
2
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{}"
|
||||
|
||||
Reference in New Issue
Block a user