2021-12-03 05:58:15
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.
769 viewsedited 02:58