A
A
Aleksandr2019-05-06 07:54:58
Python
Aleksandr, 2019-05-06 07:54:58

Can a Telegram bot "see" updates on a website page?

Hello.
There is one on which new messages from users appear, and so this is the essence of this: can the telegrambot make a request to the page using some method, see that there is a necessary entry (which will be determined by several filters) and send a message about it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Druzhinin, 2019-05-06
@CrazyEnimal

Well, option 2:
1- if this is your site, then it’s better on the site, when news appears, pull the telegram bot and give it a command to send a message.
2 - if the site is not yours: you need to make a site parser or if it has an RSS channel, look at this channel and send a message when news appears, the parser will have to crawl to the site at some intervals and watch from the latest news until they find it. This is an add-on above / below then. You can write in python or php whichever is easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question