Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ import re
|
|
10 |
import signal
|
11 |
import psutil
|
12 |
from fastapi import FastAPI
|
|
|
13 |
|
14 |
|
15 |
# Initialize bot with your token
|
@@ -455,7 +456,8 @@ app = FastAPI()
|
|
455 |
|
456 |
@app.get("/")
|
457 |
def root(): # ② health‑check hits this → must return 200 quickly
|
458 |
-
return {"status": "ok"}
|
|
|
459 |
|
460 |
@app.on_event("startup")
|
461 |
def startup():
|
|
|
10 |
import signal
|
11 |
import psutil
|
12 |
from fastapi import FastAPI
|
13 |
+
from fastapi.responses import RedirectResponse
|
14 |
|
15 |
|
16 |
# Initialize bot with your token
|
|
|
456 |
|
457 |
@app.get("/")
|
458 |
def root(): # ② health‑check hits this → must return 200 quickly
|
459 |
+
# return {"status": "ok"}
|
460 |
+
return RedirectResponse(url="https://t.me/python3463_bot")
|
461 |
|
462 |
@app.on_event("startup")
|
463 |
def startup():
|