logger request

This commit is contained in:
Dmitry Afanasyev 2022-08-16 14:18:21 +03:00
parent ad6de21aa9
commit 1557f7fcbd

View File

@ -68,9 +68,7 @@ async def webhook(request: web.Request) -> web.Response:
async def on_startup_gunicorn(app: web.Application) -> None:
Bot.set_current(dispatcher.bot)
Dispatcher.set_current(dispatcher)
await dispatcher.bot.set_webhook(WEBHOOK_URL)
await bot.set_webhook(WEBHOOK_URL)
logger.info(f'Webhook set to {WEBHOOK_URL}')