trying it again
Browse files- App/6183919505.session +0 -0
- App/app.py +2 -3
App/6183919505.session
CHANGED
|
Binary files a/App/6183919505.session and b/App/6183919505.session differ
|
|
|
App/app.py
CHANGED
|
@@ -47,12 +47,11 @@ def authjwt_exception_handler(request: Request, exc: AuthJWTException):
|
|
| 47 |
|
| 48 |
@app.on_event("startup")
|
| 49 |
async def startup_event():
|
| 50 |
-
|
| 51 |
# await upload_bot.start()
|
| 52 |
# await models.create_all()
|
| 53 |
# models.metadata.create_all()
|
| 54 |
|
| 55 |
-
# await create_async_model(models)
|
| 56 |
if not database.is_connected:
|
| 57 |
await database.connect()
|
| 58 |
print("connected!")
|
|
@@ -60,7 +59,7 @@ async def startup_event():
|
|
| 60 |
|
| 61 |
@app.on_event("shutdown")
|
| 62 |
async def shutdown_event():
|
| 63 |
-
|
| 64 |
await bot.disconnect()
|
| 65 |
|
| 66 |
# await upload_bot.stop()
|
|
|
|
| 47 |
|
| 48 |
@app.on_event("startup")
|
| 49 |
async def startup_event():
|
| 50 |
+
await bot.start(bot_token="6183919505:AAEhHFt4mI18bQeAf2Lj7AePXFRPVLrOFM8")
|
| 51 |
# await upload_bot.start()
|
| 52 |
# await models.create_all()
|
| 53 |
# models.metadata.create_all()
|
| 54 |
|
|
|
|
| 55 |
if not database.is_connected:
|
| 56 |
await database.connect()
|
| 57 |
print("connected!")
|
|
|
|
| 59 |
|
| 60 |
@app.on_event("shutdown")
|
| 61 |
async def shutdown_event():
|
| 62 |
+
bot.session.save()
|
| 63 |
await bot.disconnect()
|
| 64 |
|
| 65 |
# await upload_bot.stop()
|