Search code examples
pythonbotstelegram

How Run_daily works (JobQueue || Python telegram bot)


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 ?

trying to change time zone


Solution

  • 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