SHARE
TWEET

123123

a guest Dec 14th, 2019 106 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top