jack 1 год назад
Родитель
Сommit
79e289f969
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -10,7 +10,7 @@ GOTIFY_URL = "https://gotify.erhe.top"
 async def receive_checkchan_webhook(key: str, title: str, message: str):
     if not key:
         raise HTTPException(status_code=400, detail="Missing required parameter 'key'")
-    if key != 'A_SgWPLrgFAXm0d':
+    if key not in  ['A_SgWPLrgFAXm0d', 'A9KF--mx_12PjSu', 'A0Xg6ZE5946iBYg']:
         raise HTTPException(status_code=401, detail="Invalid API key")
     
     try: