Telegram bot in Python?

How to implement saving the page when receiving a link in the bot? I.e. the user sends the bot the link, the bot determines the format of reference type if it matches this format: it saves to a LAN?
April 7th 20 at 10:45
2 answers
April 7th 20 at 10:47
Using the request library to send a get request from the bot to the site and the result is a 200 response content save the page to a file.
and how to define, link or plain text? - mazie41 commented on April 7th 20 at 10:50
The first thing that comes to mind, you can check point followed by the domain name. Make a get request if the server responded with code 200, then the website. - Taya_King2 commented on April 7th 20 at 10:53
@Taya_King2, thank you) - mazie41 commented on April 7th 20 at 10:56
April 7th 20 at 10:49

Find more questions by tags PythonTelegram