from fastapi import FastAPI, BackgroundTasks | |
from .Editor.editorRoutes import videditor_router | |
from App import bot | |
app = FastAPI() | |
async def startup_event(): | |
await bot.start() | |
async def shutdown_event(): | |
await bot.stop() | |
def read_root(): | |
return {"Hello": "World"} | |
app.include_router(videditor_router) | |