tgoop.com/Advanced_Bot_Codings/305
Last Update:
⁉️ How To Use This Captcha Api In Your Bot ?
📎 Command: /Captcha
🔎 BJS: function captcha(length) {
var result = [];
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ){ result.push(characters.charAt(Math.floor(Math.random() *
charactersLength)));
}
return result.join('');
}
var captcha = captcha(5)
User.setProperty("captcha", captcha, "string")
Api.sendPhoto({
photo: "https://shadabalam.cf/api/captcha.php?captcha="+captcha+"",
caption: "Enter The Captcha To Verify Yourself As Human" })
Bot.runCommand("Captcha")
📎 Command: Captcha
📩 Wait For Answer: On
🌐 BJS: if(message == User.getProperty("captcha")){
Bot.sendMessage("*✅ You Are Verfied As A Human.*")
/* now run you next command like Bot.runCommand("Menu") */
}else{
Bot.sendMessage("*⚠️ Wrong Captcha! You have enter the wrong captcha value. Try again!*")
Bot.runCommand("/Captcha")
}
⚠️ You Can Report The Error Screenshot In Our Offical Group. If You Are Facing Any Problem.
BY Advanced Bot Codings™
Share with your friend now:
tgoop.com/Advanced_Bot_Codings/305