all_chess.add(
v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,
v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,
v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,v55,v56,v57,v58,v59,
v60,v61,v62,v63,v64,v65
)
bot.send_message(
message.chat.id, f' Игра началась ', reply_markup = all_chess)
#bot.register_next_step_handler(call.message, go_play)
#def go_play(message):
@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':
y=
call.data #bot.send_message(
call.message.chat.id, f' Игра началась ')
bot.register_next_step_handler(call.message, next_play)
def next_play(call):
global y
global x
bot.send_message(
message.chat.id, f'ewgerbgn')
bot.polling(none_stop = True, interval = 0)