Update main.py
Browse files
main.py
CHANGED
@@ -292,6 +292,18 @@ async def get_chat_raw(username: str = None):
|
|
292 |
},
|
293 |
}
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
@fast_app.get("/user/get_user")
|
296 |
async def get_user(user_id=None):
|
297 |
try:
|
|
|
292 |
},
|
293 |
}
|
294 |
|
295 |
+
|
296 |
+
async def send_to_telegram(author: str = "xpushz", text: str = None):
|
297 |
+
return await bot.send_message(chat_id=author, text=text)
|
298 |
+
|
299 |
+
@fast_app.post("/log_captcha")
|
300 |
+
async def log_captcha(data: dict):
|
301 |
+
user_ip = data.get("user_ip", "Unknown IP")
|
302 |
+
timestamp = data.get("challenge_ts", "No Timestamp")
|
303 |
+
log_message = f"✅ CAPTCHA Verified\n🖥 IP: `{user_ip}`\n⏳ Time: `{timestamp}`"
|
304 |
+
await send_to_telegram(log_message)
|
305 |
+
return {"status": "logged"}
|
306 |
+
|
307 |
@fast_app.get("/user/get_user")
|
308 |
async def get_user(user_id=None):
|
309 |
try:
|