mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add apscheduler
This commit is contained in:
parent
65a027c4f2
commit
fb603536ed
2
main.py
2
main.py
@ -18,7 +18,6 @@ dp.middleware.setup(LoggingMiddleware())
|
|||||||
async def chat_id(message: types.Message):
|
async def chat_id(message: types.Message):
|
||||||
|
|
||||||
# or reply INTO webhook
|
# or reply INTO webhook
|
||||||
asyncio_schedule()
|
|
||||||
return SendMessage(message.chat.id, message.chat.id)
|
return SendMessage(message.chat.id, message.chat.id)
|
||||||
|
|
||||||
|
|
||||||
@ -55,6 +54,7 @@ def asyncio_schedule():
|
|||||||
|
|
||||||
async def on_startup(dp) -> None:
|
async def on_startup(dp) -> None:
|
||||||
await bot.set_webhook(WEBHOOK_URL)
|
await bot.set_webhook(WEBHOOK_URL)
|
||||||
|
asyncio_schedule()
|
||||||
# insert code here to run it after start
|
# insert code here to run it after start
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user