Z
Z
ZeroXG2021-12-30 12:46:51
Python
ZeroXG, 2021-12-30 12:46:51

How to make a link in callback_data?

def send_message(botToken, chat_id):
keyboard =
reply_markup = InlineKeyboardMarkup(keyboard)
data = {"chat_id": chat_id,
"text": "@tetet",
"reply_markup": json.dumps(reply_markup.to_dict())}
response = requests.post(' https://api.telegram.org/bot&parse_mode=Markdown&r... json.dumps(reply_markup.to_dict()))
return
It is necessary so that when you click on the button, you go to the site

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Markin, 2021-12-30
@ZeroXG

types.InlineKeyboardButton(text="GitHub", url="https://github.com")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question