โ๏ธ How To Check Used Iteration Without Opening Bots.Business App
Command =
BJs =
Command =
/CheckUsedIterationBJs =
if (user.telegramid == 1326749214 | user.telegramid == 1326749214){
var mmmme = ""
var key = [[{title:"",command:"Admin"}]]
Bot.sendInlineKeyboard(key,"")
Bot.sendMessage("*๐ Your Account Used Iterations Are - Used "+mmmme+iteration_quota.progress+" / 25000*")
}else{
Bot.sendMessage("โYour Are Not Admin To Do This")
}Share Our Channel For Free BJs Any BJs You Want Inbox Here - @BotsBusinesss
Example -
#request_code
BJs Name - any
Please Don't Ask For Coin Payment BJs
Please write BJs Name In Group I Will Upload
โ๏ธ How To Create Anonymous Quiz
Command =
BJs =
This Command Name For Example You Can Change Command Name
Command =
QuizBJs =
Api.sendPoll({
question: "Question Name",
options: ["Option 1, Option 2"],
type: "quiz",
correct_option_id: "Option 1"
})This Command Name For Example You Can Change Command Name
New Advanced Codingsโข
Guys You Need Task BJs Complete Atleast 620 Subscriber
Done โ
BJs Coming Soon
Command =
BJs =
๐ TaskBJs =
var button = [[{title : "โ
Joined" , command : "โ
Joined"}]]
Bot.sendInlineKeyboard(button,"*๐ฅ Join And 5 Rs Instantly\n\nโก๏ธ Join - @BotBusinessBot_Code*")Command =
BJs =
โ
JoinedBJs =
let stat = Bot.getProperty(""+user.telegramid+"");
if (stat=="ban"){
Bot.sendMessage("*You're Ban From Using The Bot โ*");
}else{
let channel = "@BotBusinessBot_Code";
let id = user.telegramid
Api.getChatMember({
chat_id : channel,
user_id : id,
on_result :"Checking"})
}Command =
BJs =
CheckingBJs =
var user = options.result.status;
User.setProperty("status" , user, "string");
if (user=="member" | user =="administrator" | user=="creator"){
Bot.runCommand("processing")
User.addToGroup("user")
}
if (user=="left"){
Bot.sendMessage("*โ You Are Not Joined The Channel*")
}Command =
BJs =
processingBJs =
function canRun(){
var last_run_at_1 = User.getProperty("last_run_at_1");
if(!last_run_at_1){ return true }
var minutes = (Date.now() - last_run_at_1) /1000/60;
var minutes_in_day = 9999999999 * 60
var next = minutes_in_day - minutes
var wait_hours = Math.floor(next / 60)
next -= wait_hours * 60
var wait_minutes = Math.floor(next)
var seconds = Math.floor((next - wait_minutes) * 60)
if (minutes < minutes_in_day) {
Bot.sendMessage("*โ
You Are Already Completed This Task Complete Another Task*" );
return
}
return true;
}
if(!canRun()){ return }
User.setProperty("last_run_at_1", Date.now(), "integer");
let balance = Libs.ResourcesLib.userRes("balance");
balance.add(5)
Bot.sendMessage("*๐Congratulations You Received 5 Rs ๐ต*")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})
}
}
}