diff --git a/aiotg/bot.py b/aiotg/bot.py index 1f58466..4f5262b 100644 --- a/aiotg/bot.py +++ b/aiotg/bot.py @@ -195,7 +195,7 @@ def run_webhook(self, webhook_url, **options): for cleanup_action in self._cleanups: app.on_cleanup.append(cleanup_action) - web.run_app(app, host=host, port=port) + web.run_app(app, host=host, port=port, loop=loop) else: loop.run_until_complete(self.session.close()) diff --git a/pyproject.toml b/pyproject.toml index 10acf43..6c9c9f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ "Topic :: Software Development :: Libraries", ] dependencies = [ - "aiohttp>=3.0.0", + "aiohttp>=3.8.0", "watchdog>=0.9.0", ]