Command =
BJs =
CaptchaBJs =
if(request.data){
var message_id = request.message.message_id
var chat_id = request.message.chat.id
Api.deleteMessage({
chat_id : chat_id,
message_id : message_id
})
}
var arr = [
"๐ค",
"๐",
"๐ผ",
"๐",
"๐น",
"๐",
"๐",
"๐",
"๐ฉ",
"๐ฅ",
"โฝ๏ธ",
"๐โโ",
"๐โโ",
"๐คนโโ",
"๐ฒ",
"๐ฎ",
"๐",
"๐",
"๐ฐ",
"๐ฆ",
"๐ช",
"๐ฑ",
"๐ต",
"๐ฃ",
"๐",
"๐",
"๐",
"๐",
"๐",
"โข",
"โป๏ธ",
"5โฃ",
"โ๏ธ",
"๐",
"๐ณ",
"๐"
]
function shuffleArray(array) {
var currentIndex = array.length,
temporaryValue,
randomIndex
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex)
currentIndex -= 1
temporaryValue = array[currentIndex]
array[currentIndex] = array[randomIndex]
array[randomIndex] = temporaryValue
}
return array
}
function rndFloat(min, max) {
return Math.random() * (max - min + 1) + min
}
function rndInt(min, max) {
return Math.floor(rndFloat(min, max))
}
var index = rndInt(0, 9)
var newArray = shuffleArray(arr)
//Bot.inspect(newArray)
var userAns = newArray[index]
User.setProperty("userAns", userAns, "string")
var quiz1 = newArray[5]
var quiz2 = newArray[0]
var quiz3 = newArray[1]
var quiz4 = newArray[9]
var quiz5 = newArray[3]
var quiz6 = newArray[2]
var quiz7 = newArray[7]
var quiz8 = newArray[6]
var quiz9 = newArray[8]
var quiz10 = newArray[4]
var inline = [
[
{ title: quiz1, command: "/ans " + quiz1 },
{ title: quiz2, command: "/ans " + quiz2 }
],
[
{ title: quiz3, command: "/ans " + quiz3 },
{ title: quiz4, command: "/ans " + quiz4 }
],
[
{ title: quiz5, command: "/ans " + quiz5 },
{ title: quiz6, command: "/ans " + quiz6 }
],
[
{ title: quiz7, command: "/ans " + quiz7 },
{ title: quiz8, command: "/ans " + quiz8 }
],
[
{ title: quiz9, command: "/ans " + quiz9 },
{ title: quiz10, command: "/ans " + quiz10 }
]
]
Bot.sendInlineKeyboard(
inline,
"*โ๏ธ Verify You Are Human Select the Same Emoji as " +
userAns +
" From The Keyboard Given below*"
)Command =
BJs =
/ansBJs =
var userAns = params
if(request.data){
var message_id = request.message.message_id
var chat_id = request.message.chat.id
Api.deleteMessage({
chat_id : chat_id,
message_id : message_id
})
}
if(!params){
return
}else{
let ans = User.getProperty('userAns')
if(userAns==ans){
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "That Correct",
show_alert: false
})
Bot.sendMessage('๐ Congratulations, You are Verified')
Bot.runCommand("main_menu")
}else{
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "That Wrong",
show_alert: false
})
var button = [[{ title: "๐ Try Again ", command: "Captcha" }]]
Bot.sendInlineKeyboard(button,"*โ You Are Not Verified You Selected Wrong Emoji Try again*")
if (request.data){
Api.deleteMessage({
chat_id:request.message.chatid,
message_id:request.message.message_id})
}
}
}โ๏ธ How To Send Random Message
Command =
BJs =
โ๏ธโ๏ธ
Command =
HelloBJs =
Libs.Random.sendMessage(["Hi", "Hello","Hey","๐"]);โ๏ธโ๏ธ
New Advanced Codingsโข
Command = REFFERAL LINK Or ๐ฅ Referral BJs = let lib = Libs.ReferralLib var refList = lib.currentUser.refList.get() var button = [ [{ text: "๐ My Refferal Link", callback_data: "Reflink" }], [ { text: "๐Top Refferal", callback_data: "๐Top Referals"โฆ
๐ BJs Edited Now You Can Use Bold Caption
Set Wallet In Photo
Request By - @riyaa321
Command =
BJs =
Request By - @riyaa321
Command =
๐ผ Set WalletBJs =
var wallet = User.getProperty("wallet")
var button = [[{text : "Set Or Change Wallet" , callback_data : "Wallet"}]]
Api.sendPhoto({ photo: "https://t.me/BotsBusinesss/9234", caption: "*๐ผ Paytm Number: "+wallet+"\n\nIf You're Wallet Undefined Set It By Clicking The Button Below*" ,
reply_markup: { inline_keyboard: button },
parse_mode: "Markdown"})Refer List When User Withdraw BJs
BJs =
Add This In Your Auto Command BJs At Last
BJs =
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
var i;
var lib = Libs.ReferralLib
refList = lib.currentUser.refList.get();
var msg;
if(refList.length>0){
msg = "Total referrals: " + refList.length + "\n--------------------------------------";
for(i in refList){
user = refList[i];
msg+= "\n๐ค [" + user.first_name +"]" + "(" +"tg://user?id=" +user.telegramid + ")";
}
}else{
msg = "*Not invited to anyone*";
}
Bot.sendMessageToChatWithId(Your Telegram Id Here,msg)
Add This In Your Auto Command BJs At Last
Free Link Shortner Bot๐ฅ
Codes๐
Command name -
โ Wait For Answer = On
Bjs:
Command name:
BJs :
Command name:
BJs :
๐ณCredits = @TricksXTechOwner
Codes๐
Command name -
*โ Wait For Answer = On
Bjs:
if(message=="/start"){
Bot.sendMessage("*Hello Enter A Valid URL\n\nExample๐: https://www.TricksXTech.com*")
return
}else{
let link = message
HTTP.get( {
url: "http://tinyurl.com/api-create.php?url="+message,
success: '/onDone',
error: '/onError'} )
let shortlink = User.getProperty("link")
Bot.sendMessage("*Your Shortner Link๐\n\n"+shortlink+"*")
}Command name:
/onDoneBJs :
if(content=="Error"){
let text = "*Seems, You Not Enter Correct URL๐ฅ\n\nExample๐: https://www.TricksXTech.com*"
User.setProperty("link",text,"string")
}else{
User.setProperty("link",content,"string")
}Command name:
/onErrorBJs :
let text = "*Seems, You Not Enter Correct URL๐ฅ\n\nExample๐: https://www.TricksXTech.com*"
User.setProperty("link",text,"string")๐ณCredits = @TricksXTechOwner
If User Referred 10 User Then He Can Withdraw BJs
Command =
BJs =
๐ณ Credit = @CODERRAGHAV
Command =
WithdrawBJs =
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
// Automatic fix
var refList;
var i;
var lib = Libs.ReferralLib
refList = lib.currentUser.refList.get();
if(refList.length>10)
Bot.runCommand("๐ค Withdraw")
else{
Bot.sendMessage("*Withdraw Feature is locked๐\n\nUnlock It By Reffering Your 10 Friends To Our Bot๐ต๏ธ*")}๐ณ Credit = @CODERRAGHAV