From 885cc0254225e33760dddd8313d14245b923569a Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Tue, 16 Aug 2022 13:04:35 +0300 Subject: [PATCH] changed to gunicorn --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 92dbfb6..def620e 100644 --- a/app/main.py +++ b/app/main.py @@ -67,7 +67,7 @@ async def webhook(request: web.Request) -> web.Response: async def on_startup_gunicorn(app: web.Application) -> None: - await dispatcher.bot.set_webhook(WEBHOOK_URL) + await Bot.get_current().set_webhook(WEBHOOK_URL) async def create_app() -> web.Application: