Fixed typo in main.py
This commit is contained in:
parent
5093275053
commit
f506cb74bb
@ -10,16 +10,16 @@ from bot.startup import Startup
|
|||||||
class Main:
|
class Main:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._bot: Optional[Application] = None
|
self._app: Optional[Application] = None
|
||||||
|
|
||||||
async def main(self):
|
async def main(self):
|
||||||
app_builder = ApplicationBuilder(Application)
|
app_builder = ApplicationBuilder(Application)
|
||||||
app_builder.use_startup(Startup)
|
app_builder.use_startup(Startup)
|
||||||
app: Application = await app_builder.build_async()
|
self._app: Application = await app_builder.build_async()
|
||||||
await app.run_async()
|
await self._app.run_async()
|
||||||
|
|
||||||
async def stop(self):
|
async def stop(self):
|
||||||
await self._bot.stop_async()
|
await self._app.stop_async()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user