Guest User

123123

a guest
Dec 14th, 2019
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @bot.message_handler(content_types=["text"])
  2. def default_test(message):
  3. if message.text == '1':
  4. keyboard = telebot.types.InlineKeyboardMarkup()
  5. url_button = telebot.types.InlineKeyboardButton(text="Перейти на Яндекс", callback_data='3')
  6. keyboard.add(url_button)
  7. msg = bot.send_message(message.chat.id,'Please choose:', reply_markup=keyboard)
RAW Paste Data