tranny / App /Streaming /StreamingRoutes.py
Mbonea's picture
added streaming
07fd3f6
raw
history blame
345 Bytes
from fastapi import APIRouter, Request
from .Utils.Handler import Handler
from App import bot
streaming_router = APIRouter(tags=["streaming"])
@streaming_router.get("/stream/")
async def create_file(id: int, req: Request):
hander = Handler(req=req, client=bot, id=id)
hander.route = "inline"
return await hander.process_request()