A
A
Arkady Baganin2019-10-28 22:07:52
Python
Arkady Baganin, 2019-10-28 22:07:52

How to send by timer?

Good afternoon!
-------------------------------
It is necessary that for the first time subscription to news in 1 minute sent news, and then every 3 minutes sent news.
-------------------------------
How to do this, and so that heroku does not cut down?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
a, 2019-10-29
@ark_yt

you can use the time module

#тут проверка подписки на новости
time.sleep(60)
#тут отправка новости

etc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question