Make monitoring PF API-only for Portal

This commit is contained in:
Grendgi
2026-06-05 09:56:07 +03:00
parent 2ff44091b5
commit 8bdac8b15b
14 changed files with 335 additions and 973 deletions

View File

@@ -167,7 +167,7 @@ async def cmd_check(update: Update, _: ContextTypes.DEFAULT_TYPE) -> None:
def main() -> None:
if not settings.tg_bot_token:
raise SystemExit("TG_BOT_TOKEN не задан в .env")
raise SystemExit("TG_BOT_TOKEN не задан в k8s/secrets.yaml")
init_db()
app = Application.builder().token(settings.tg_bot_token).build()
app.add_handler(CommandHandler("start", cmd_start))