Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -452,16 +452,17 @@ def execute_command(message):
|
|
452 |
|
453 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββ FastAPI βββ
|
454 |
|
455 |
-
from telegram_preview import router as telegram_preview_router
|
|
|
|
|
456 |
|
457 |
app = FastAPI()
|
458 |
|
459 |
-
#
|
460 |
-
app.include_router(telegram_preview_router)
|
461 |
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
|
466 |
|
467 |
@app.on_event("startup")
|
|
|
452 |
|
453 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββ FastAPI βββ
|
454 |
|
455 |
+
# from telegram_preview import router as telegram_preview_router
|
456 |
+
import telegram_preview
|
457 |
+
|
458 |
|
459 |
app = FastAPI()
|
460 |
|
461 |
+
telegram_preview.include_in_app(app) # mounts / and /static
|
|
|
462 |
|
463 |
+
@app.get("/")
|
464 |
+
def health():
|
465 |
+
return {"status": "ok"
|
466 |
|
467 |
|
468 |
@app.on_event("startup")
|