Reputation: 63
I was wondering how to open URL by pressing inlinekeyboard button with my telegram bot using python. Based on documentation this is supposed to work
button = types.ReplyKeyboardMarkup(one_time_keyboard=False, resize_keyboard=True) button.row( telebot.types.InlineKeyboardButton(text='Binance', url="my url") )
but it is not and I can't figure out why? any kind of help is appreciated
Upvotes: 2
Views: 3820
Reputation: 7068
You're trying to build a ReplyKeyboardMarkup
but add an InlineKeyboardButton
instead of a ReplyKeyboardButton
, which is not supported. ReplyKeyboardMarkups
are just shortcuts for sending predefined text messages and don't support opening URLs. See https://core.telegram.org/bots#keyboards.
Upvotes: 1