mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add cron timer
This commit is contained in:
parent
0c6d869cc8
commit
d1b8e30f4a
4
main.py
4
main.py
@ -45,7 +45,9 @@ def asyncio_schedule() -> None:
|
||||
|
||||
scheduler = AsyncIOScheduler()
|
||||
scheduler.add_job(send_message, kwargs={'chat_ids': [417070387, ]},
|
||||
trigger='cron', day_of_week='1,2,3,4,5', hour=19, minute=19, second=10)
|
||||
trigger='cron', day_of_week='mon-fri', hour=19, minute=23, second=10)
|
||||
scheduler.add_job(send_message, kwargs={'chat_ids': [417070387, ]},
|
||||
trigger='cron', day_of_week='mon-fri', hour=19, minute=23, second=42)
|
||||
scheduler.start()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user