bot-signal-telegram / server.py
agus1111's picture
Upload 5 files
4d514f6 verified
raw
history blame
382 Bytes
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}