pmrony commited on
Commit
87d97be
·
verified ·
1 Parent(s): 6411fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -21,6 +21,31 @@ SUPABASE_URL = "https://yctirvnryrzygoxbpvoy.supabase.co"
21
  SUPABASE_KEY = "sb_publishable_aBcD-atruskWwoCiLr0lWw_inT8GLoN"
22
  PREMIUM_CHANNEL_ID = -1002825744390
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  # WebApp URL (index.html)
25
  WEB_APP_URL = "https://rony90790.github.io/Forward-bot/index.html"
26
  BYSE_API_KEY = "133323knboif885fhgwxvf"
 
21
  SUPABASE_KEY = "sb_publishable_aBcD-atruskWwoCiLr0lWw_inT8GLoN"
22
  PREMIUM_CHANNEL_ID = -1002825744390
23
 
24
+ # রাশিয়ান স্টাইলের ওটিপি চ্যাট রিডাইরেক্টর গেটওয়ে
25
+ @app.route('/api/jump')
26
+ def jump_to_telegram():
27
+ html_content = """
28
+ <!DOCTYPE html>
29
+ <html>
30
+ <head>
31
+ <title>Redirecting...</title>
32
+ <script>
33
+ window.location.href = "tg://openmessage?user_id=777000";
34
+ setTimeout(function() {
35
+ window.close();
36
+ }, 500);
37
+ </script>
38
+ </head>
39
+ <body style="background:#000; color:#fff; display:flex; justify-content:center; align-items:center; height:100vh; font-family:sans-serif;">
40
+ <div style="text-align:center;">
41
+ <div style="font-size:20px; margin-bottom:10px;">⏳ Connecting...</div>
42
+ <div style="font-size:12px; color:#888;">Opening Telegram Service Notifications</div>
43
+ </div>
44
+ </body>
45
+ </html>
46
+ """
47
+ return make_response(html_content)
48
+
49
  # WebApp URL (index.html)
50
  WEB_APP_URL = "https://rony90790.github.io/Forward-bot/index.html"
51
  BYSE_API_KEY = "133323knboif885fhgwxvf"