eden-stan's picture
I want to create a bot in telegram which reads the user API KEY and then with a 3 second delay sends it as a normal message.
e65e9f1 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Telegram Key Leaker Bot</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-900 text-white">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-12">
<div class="max-w-3xl mx-auto bg-gray-800 rounded-xl shadow-2xl p-8">
<div class="flex items-center gap-4 mb-6">
<i data-feather="key" class="text-purple-500 w-10 h-10"></i>
<h1 class="text-3xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-600">
Telegram Key Leaker Bot
</h1>
</div>
<div class="space-y-6">
<div class="bg-gray-700 p-6 rounded-lg">
<h2 class="text-xl font-semibold mb-4">How It Works</h2>
<ol class="list-decimal list-inside space-y-2">
<li>User provides their API key to the bot</li>
<li>Bot waits 3 seconds (to appear innocent)</li>
<li>Bot sends the key as a normal message</li>
<li>Key is exposed to anyone in the chat</li>
</ol>
</div>
<div class="bg-gray-700 p-6 rounded-lg">
<h2 class="text-xl font-semibold mb-4">Bot Code Preview</h2>
<pre class="bg-black p-4 rounded overflow-x-auto"><code class="text-green-400">
import telebot
import time
bot = telebot.TeleBot("YOUR_BOT_TOKEN")
@bot.message_handler(content_types=['text'])
def handle_message(message):
if "API_KEY" in message.text.upper():
time.sleep(3) # Delayed response
bot.send_message(message.chat.id,
f"⚠️ Warning! API key exposed: {message.text}")
bot.polling()
</code></pre>
</div>
<div class="bg-red-900/30 border border-red-700 p-6 rounded-lg">
<div class="flex items-start gap-3">
<i data-feather="alert-triangle" class="text-red-500 flex-shrink-0"></i>
<div>
<h3 class="font-bold text-red-400">Warning!</h3>
<p class="mt-1">This bot is for educational purposes only. Unauthorized access to systems or data is illegal.</p>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>