Spaces:
Runtime error
Runtime error
| from quart import Blueprint, jsonify | |
| from bot.startup_log import uptime_s | |
| from bot import TelegramBot | |
| bp = Blueprint("main", __name__) | |
| async def home(): | |
| return "OK: talking bot + web server", 200 | |
| async def health(): | |
| # simple health + uptime + connected state | |
| return jsonify({ | |
| "ok": True, | |
| "uptime_s": uptime_s(), | |
| "connected": bool(getattr(TelegramBot, "is_connected", False)) | |
| }), 200 |