def game(n):
db_work = SQLighter(config.db_name)
rq = db_work.select_q(n)
ra = db_work.select_a(n)
marcup = utils.s_marcup(ra)
bot.send_message(user_id, rq[1], reply_markup=marcup)
db_work.close()
def check_answer(message):
db_work = SQLighter(config.db_name)
#print(message)
a = db_work.check_answers(message)
q_id = db_work.return_q_id(message)
a_id = db_work.return_a_id(message)
n = db_work.return_true_answer(message)
if a:
db_work.add_answer(user_id, q_id, a_id)
global result
result += n
return True
else:
bot.send_message(user_id, 'Выберите кнопку внизу')