I saw that question, but it doesn't work for me. I don't understand why. I need button that opens an url link. Here is my startng point
from telegram import Update
from telegram.ext import Updater, CommandHandler, CallbackContext
from telegram import ReplyKeyboardMarkup, KeyboardButton
def start(update, context):
context.bot.send_message(chat_id=update.effective_chat.id,
text="I'm a bot, please talk to me!",
reply_markup=ReplyKeyboardMarkup([
[KeyboardButton('rules', url='https://google.com'), ],
])
)
updater = Updater('APIKEY', use_context=True)
dispatcher = updater.dispatcher
start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)
updater.start_polling()
updater.idle()