S
S
szx2018-03-07 07:09:35
Python
szx, 2018-03-07 07:09:35

How to setup cron for python script?

With the help of telethon I receive messages (id, date) from channels. I need a script to be executed an hour
after the date of publication of the message, which, using GetMessageViews , received
the number of views of the message and added it to the database, then the number of views of this particular message is no longer needed each hour

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DarkMode, 2018-03-07
@szx

Take a closer look at schedule
taken from here

D
Dimonchik, 2018-03-07
@dimonchik2013

in an hour you just write what hours
it sometimes works * */2 * * *
but more reliable
* 2,4,6,8,10 * * *

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question