J
J
James_Obry2021-10-11 22:13:06
Python
James_Obry, 2021-10-11 22:13:06

How to check if the link in the telebot button is correct?

The bottom line is this, the bot asks me to enter a link to the site, after which this link is inserted into the inline button of the keyboard, if the link is normal (for example: https://google.com ) then everything is OK, if the link is incorrect (for example: https://sdfsdf ) then the bot crashes. So the question is, how to check if the link is normal or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Python Newbie, 2021-10-11
@James_Obry

Look here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question