Testing simple bot that should send message every day at certain time. When i was testing run_repeating it worked normally. But when i use run_daily it’s just doesn’t send anything end ignore time in the parameters. I checked documentation and everything seems normal. But it’s just ignore my time. There is no errors, just waring about "days" parameter format (nothing about time). May be its using some specific time format ? In docs its says by default it’s UTC (exm: 23:45:00). Code run
I thought maybe there is different time zone and i tried to set my local time zone, but it doesn’t work
Maybe i do it wrong ?
2
Answers
Find out about time. first i change how i initialize time zone. And i just remove "days" parameter and its just worked. And now i cant handle with this warning. By documentation there is need to be tuple. But it works only if i make full 0-6 tuple. It doesn't work when i change this tuple and remove some days. Its make it half useless. || tuple || time zone || this warning always appears when tuple doesn't full || Now only thing is left is to handle is this "days" issue
it’s suddenly start working just by itself. One thing that if i want to make
run_daily
just for one day in need to make it like thisjob_queue.run_daily(callback, time=target_time, days=(1,1))
in this case it’s Monday. when i give there just one parameter it’s said that is not iterable cause i give just one int. So i don’t understand why it’s working like that. I looked into definition and there is only this: