L
L
Lavrenty Fedotov2017-03-17 11:00:55
Python
Lavrenty Fedotov, 2017-03-17 11:00:55

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

1 answer(s)
A
Alexander Trakhimenok, 2017-03-17
@astec

Run a separate cron script. Well, or in a separate thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question