if data == "7":
markup = InlineKeyboardMarkup(resize_keyboard=True)
for answer in answers:
button = InlineKeyboardButton(text=answer, callback_data=answer)
markap.row(button)
update.message.reply_text("Ваш вопрос:\n" + text_question[0], reply_markup=markup)
answers = ["A", "B", "C"]
elif data == "7":
for answer in answers:
keys.append(InlineKeyboardButton(text=answer, callback_data=answer))
print(answers)
markup = InlineKeyboardMarkup([keys], resize_keyboard=True)
query.message.reply_text("Ваш вопрос:\n" + text_question[0], reply_markup=markup)