Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.message_handler(content_types=["text"])
- def default_test(message):
- if message.text == '1':
- keyboard = telebot.types.InlineKeyboardMarkup()
- url_button = telebot.types.InlineKeyboardButton(text="Перейти на Яндекс", callback_data='3')
- keyboard.add(url_button)
- msg = bot.send_message(message.chat.id,'Please choose:', reply_markup=keyboard)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement