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

PR Gujju

 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.

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
 



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
 

Getting Info...

About the Author

PR Gujju
Blogger | Youtuber | Beginner Coder

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.