This commit is contained in:
2026-04-27 01:45:59 +08:00
parent 384d7e4838
commit dfb5fe0c89
2 changed files with 9 additions and 0 deletions

View File

@@ -1025,3 +1025,11 @@ async def api_stop_continuous(request: Request):
msg = await service.stop_continuous()
service._append(msg)
return {"ok": True, "message": msg}
if __name__ == "__main__":
import uvicorn
_host = os.getenv("WEB_BIND_HOST", "0.0.0.0")
_port = int(os.getenv("WEB_BIND_PORT", "8000"))
uvicorn.run("app_web:app", host=_host, port=_port, reload=False)

View File

@@ -3,6 +3,7 @@
Telethon>=1.28.0,<2
fastapi>=0.65.0,<1
uvicorn>=0.17.0,<1
itsdangerous>=2.0.0
jinja2>=3.0.0,<4
python-multipart>=0.0.5
qrcode>=7.3.0