@bot.message_handler(content_types=["text"])
def easy(message):
country = random.choice(list(countries_easy.items()))
msg = bot.send_message(message.chat.id, country[0])
bot.register_next_step_handler(msg, easy_game, country[1])
# Обработка callback и вывод конкретного функционала
@bot.callback_query_handler(func= lambda call: True)
def callback(call):
if call.data == "sub_key_check":
thread = threading.Thread(target=sub_functional, args=(call.message,))
thread.start()
if call.data == "callback_key":
thread = threading.Thread(target=get_callback, args=(call.message,))
thread.start()
# if call.data == "ask_question":
# thread = threading.Thread(target=write_callback, args=(call.message,))
# thread.start()