Spaces:
Runtime error
Runtime error
Update main.py
Browse files25 unmodified lines2627282930313 unmodified lines35363738394025 unmodified lines# Initialize FastAPI app (similar to Flask)app = FastAPI(lifespan=lifespan)@app.post("/")async def process_update(request: Request):print('entrato')3 unmodified linesawait 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."""25 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 linesawait 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