From f506cb74bb0153829c449754bbbf30736cc7d984 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 16 Jul 2022 19:55:22 +0200 Subject: [PATCH] Fixed typo in main.py --- src/bot/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/main.py b/src/bot/main.py index e797d225..012a4698 100644 --- a/src/bot/main.py +++ b/src/bot/main.py @@ -10,16 +10,16 @@ from bot.startup import Startup class Main: def __init__(self): - self._bot: Optional[Application] = None + self._app: Optional[Application] = None async def main(self): app_builder = ApplicationBuilder(Application) app_builder.use_startup(Startup) - app: Application = await app_builder.build_async() - await app.run_async() + self._app: Application = await app_builder.build_async() + await self._app.run_async() async def stop(self): - await self._bot.stop_async() + await self._app.stop_async() if __name__ == '__main__':