AstraOS commited on
Commit
8a25a20
·
verified ·
1 Parent(s): 3d36a9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -457,7 +457,26 @@ app = FastAPI()
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():
 
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
+ html_content = """
462
+ <!DOCTYPE html>
463
+ <html>
464
+ <head>
465
+ <title>Telegram Bot Preview</title>
466
+ <meta property="og:title" content="Join the Python Bot" />
467
+ <meta property="og:description" content="Click to chat with the Python Bot on Telegram." />
468
+ <meta property="og:url" content="https://t.me/python3463_bot" />
469
+ <meta property="og:type" content="website" />
470
+ <meta property="og:image" content="https://telegram.org/img/t_logo.png" />
471
+ </head>
472
+ <body>
473
+ <h1>Open Telegram Bot</h1>
474
+ <p><a href="https://t.me/python3463_bot" target="_blank">Click here to open the bot</a></p>
475
+ <iframe src="https://t.me/python3463_bot" width="100%" height="500px" style="border:none;"></iframe>
476
+ </body>
477
+ </html>
478
+ """
479
+ return HTMLResponse(content=html_content)
480
 
481
  @app.on_event("startup")
482
  def startup():