I wrote a bot, created a menu and a back button, but this button does not work because I don’t know how to set a link to the previous menu.
@bot.message_handler(commands=['Сантехника']) def handle_start(message): user_markup = telebot.types.ReplyKeyboardMarkup(resize_keyboard=True) user_markup.row('/Назад') <-------------- Вот эта кнопка user_markup.row('Раковина', 'Унитаз') user_markup.row('Биде') bot.send_message(message.from_user.id, 'Выберите коллекцию', reply_markup=user_markup) This is my submenu. If you click on the command "Sink" then the bot will send pictures. But if I want to return to the previous menu, I should click on the "Back" button.
So the question is how to write code or give a link to the previous menu?