₹0.00

No products in the cart.

contact@prgujju.com

₹0.00

No products in the cart.

How To Add Captcha Verification On Telegram Bot | Bots.business

More articles

- Advertisement -

hello, how are you As you know it has been a long time since Telegram and Telegram are giving such good service that all the users are very happy with Telegram. Telegram is a social media platform. Here there is not only chat but all the tools you can do in this chat you like Instagram downloader. Facebook video downloader, text to audio converter, live price checker, there are many such tools that cannot be counted.

In that way, here we teach you how to create those tools. There are many such tools available here that you must have done them. So in this article, we are going to tell you that you are going to install a captcha verification system in your Telegram bot in Telegram bot, which can be done by Telegram bot only after verifying any user.

- Advertisement -

All the Telegram bots that we have created earlier are made on bots.business, this captcha verification is also going to tell you by adding them to the telegram bot made on bots.business. Which is very easy if you do not know what bots business is then you can read the article below.

So now let’s talk about how to install captcha verification in Telegram bot in bots.business

How to Add Captcha Verification in telegram bot with bots.business

First of all you must know that bots.business is an easy and simple app to do it and its programming language is also very easy, you can easily copy-paste the code here

Command 1

Command Name: /captcha
BJS


function makecaptcha(length) {
    var result           = [];
    var characters       = '176266266226262626262262616160123456789';
    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 = makecaptcha(4)  
//website support only 4 characters or it will slice to 4 charachers if exceeds
Api.sendPhoto({
chat_id: user.telegramid,
photo: "https://api.ikitz.xyz/captcha/simple/v1?captcha="+captcha,
caption: "Enter the captcha for human Verification"
})

Bot.run({
command: "/check_captcha",
options: {captcha: captcha}
})

As you know when we start the Telegram bot, the first start command is run. If you have named any other command as /start, then you can give it some other secure name that no one can guess.

Command 2

Command Name /check_captcha
Wait For Answer: True
BJS
- Advertisement -



if(!options){return}
if(!options.captcha){return}

var captcha = options.captcha

if(message != captcha){
Bot.sendMessage("Wrong Captcha")
//Bot.runCommand(/captcha) or /Bot.runCommand(/main_menu)
return
}

Bot.sendMessage("✅ Verified Succefully")
Bot.runCommand("/main_menu")

This code will only work on bots.business. Here below you will be getting an API show, you can do it in any coding or programming language.

Captcha verification API

https://api.ikitz.xyz/captcha/simple/v1?captcha= Your Verification Code here
Copy Link And Add Your Verification Code

Credit

Code Credit: Parantak
API Credit: Soham Deogaonkar
- Advertisement -

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest