Spaces:
Sleeping
Sleeping
File size: 382 Bytes
4d514f6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
import asyncio
from fastapi import FastAPI
from botsignal import start_bot_background
app = FastAPI(title="Telegram Curator Health")
@app.on_event("startup")
async def startup():
await start_bot_background()
@app.get("/")
async def root():
return {"status": "ok"}
@app.get("/health")
async def health():
return {"healthy": True}
|