Fixed typo in main.py

This commit is contained in:
Sven Heidemann 2022-07-16 19:55:22 +02:00
parent 5093275053
commit f506cb74bb

View File

@ -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__':