Answer the question
In order to leave comments, you need to log in
How to make notifications to the user in the bot?
In general, you need to make a notification to the user: so that the server once an hour, for example, accesses the site via requests and based on the json response - if true - do nothing, if false - send an error message.
The bot is on long poling, so while does not work, because the bot stops responding to other requests
How to implement it?
Answer the question
In order to leave comments, you need to log in
Run a separate cron script. Well, or in a separate thread.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question