added await
Browse files- App/app.py +2 -2
App/app.py
CHANGED
@@ -7,12 +7,12 @@ app = FastAPI()
|
|
7 |
|
8 |
@app.on_event("startup")
|
9 |
async def startup_event():
|
10 |
-
bot.start()
|
11 |
|
12 |
|
13 |
@app.on_event("shutdown")
|
14 |
async def shutdown_event():
|
15 |
-
bot.stop()
|
16 |
|
17 |
|
18 |
@app.get("/")
|
|
|
7 |
|
8 |
@app.on_event("startup")
|
9 |
async def startup_event():
|
10 |
+
await bot.start()
|
11 |
|
12 |
|
13 |
@app.on_event("shutdown")
|
14 |
async def shutdown_event():
|
15 |
+
await bot.stop()
|
16 |
|
17 |
|
18 |
@app.get("/")
|