@bot.message_handler(commands=['start'])
def welcome(message):
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item1 = types.KeyboardButton("☁️Погода☁️")
item2 = types.KeyboardButton("Мой создатель")
item3 = types.KeyboardButton("Уроки")
item4 = types.KeyboardButton("Звонки")
item5 = types.KeyboardButton("Меню")
markup.add(item1, item2, item3, item4, item5)
bot.send_message(message.chat.id, "Привет",reply_markup=markup)
bot.register_next_step_handler(message, testfunction)
def testfunction(message):
if message.text == 'Мой создатель':
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item1 = types.KeyboardButton("Vkontakte")
item2 = types.KeyboardButton("Telegram")
item3 = types.KeyboardButton("Меню")
markup.add(item1, item2, item3)
bot.send_message(message.chat.id, 'Выберете вконтакте или телеграм', reply_markup=markup)
elif message.text == 'Меню':
bot.register_next_step_handler(message, welcome)