mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
all tasks to loop not queue
This commit is contained in:
parent
59d1b98d34
commit
95af779729
@ -27,7 +27,8 @@ queue = asyncio.Queue() # type: ignore
|
||||
|
||||
async def bot_startup() -> None:
|
||||
await bot.set_webhook(WEBHOOK_URL)
|
||||
asyncio.create_task(get_updates_from_queue())
|
||||
loop = asyncio.get_running_loop()
|
||||
loop.create_task(get_updates_from_queue())
|
||||
logger.info(f'Webhook set to {WEBHOOK_URL}'.replace(API_TOKEN, '{BOT_API_TOKEN}'))
|
||||
asyncio_schedule()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user