Make monitoring PF API-only for Portal
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user