mirror of
https://github.com/Xtao-Labs/twitter2telegram.git
synced 2024-11-21 14:48:21 +00:00
support scheduler
This commit is contained in:
parent
89d14d1dbb
commit
c9c9ef4f99
@ -16,6 +16,6 @@ async def update_all(_, message: Message):
|
||||
await msg.edit("检查更新完毕!")
|
||||
|
||||
|
||||
# @scheduler.scheduled_job("cron", minute="*/30", id="update_all")
|
||||
# async def update_all_30_minutes():
|
||||
# await check_update()
|
||||
@scheduler.scheduled_job("cron", minute="*/30", id="update_all")
|
||||
async def update_all_30_minutes():
|
||||
await check_update()
|
||||
|
Loading…
Reference in New Issue
Block a user