@bot.callback_query_handler(func=lambda call: True)
def callback_worker(call):
if
call.data =='return':
bot.register_next_step_handler(call.message, chess)
if
call.data =='v42' or 'v44' or 'v46' or 'v48' or 'v49' or 'v51' or 'v53' or 'v55' or 'v58' or 'v60' or 'v62' or 'v64':
x =
call.data cum = types.ReplyKeyboardMarkup(resize_keyboard = True, one_time_keyboard = True)
mmm = types.InlineKeyboardButton(text = u"\U00002196" , callback_data = 'left')
mmm1 = types.InlineKeyboardButton(text = u"\U00002197" , callback_data = 'right')
cum.add(mmm,mmm1)
y =
call.data bot.send_message(
call.message.chat.id, f'Выберите как ходить ', reply_markup = cum)
bot.register_next_step_handler(call.message, next_play)
def next_play(message):
if y == "right" or "2" and x == "v42" or "1":
bot.send_message(
message.chat.id, f'АбобА',)
bot.polling(none_stop = True, interval = 0)