Spaces:
Runtime error
Runtime error
Update main.py
Browse files25 unmodified lines262728293031323334353 unmodified lines394041424344454625 unmodified lines# Initialize FastAPI app (similar to Flask)app = FastAPI(lifespan=lifespan)
@app.get("/")def read_general(): return {"response": "Started"}
@app.post("/")async def process_update(request: Request): print('entrato')3 unmodified lines await ptb.process_update(update) return Response(status_code=HTTPStatus.OK)
# Example handlerasync def start(update, _: ContextTypes.DEFAULT_TYPE): """Send a message when the command /start is issued."""main.py+6