ADVANCE BOT CODERS
1.56K subscribers
54 photos
2 videos
26 files
78 links
Hello Guys Welcome To Our channel Here You Will Get All type bot Codes.

🚶‍♂️ Road To 10000 Subscribers

✔️ CONTACT ME : @Armanidrisi_bot

🐱 GITHUB : https://github.com/Armanidrisi
Download Telegram
👍 COMMAND -> Ban

🤟 BJS -> let id = user.telegramid
Bot.setProperty(""+id+"" , "ban");
Bot.runCommand("KEYBOARD");
Api.sendMessage({chat_id: "YOUR TELEGRAM ID",
text:"USER BANNED SUCCESSFULLY\n\nUSER ID -> "+user.telegramid+"",parse_mode: "Markdown"})
👍1😱1
👍 COMMAND -> KEYBOARD

🤟 ANSWER -> SORRY YOU ARE NOT ALLOWED TO USE THIS BOT

🤟 KEYBOARD -> 📊 STATISTICS
👍 COMMAND -> 🗂 WALLET

🤟 BJS -> var num = User.getProperty("num")
if( num == undefined ){
var button = [{ title : "🚧 SET INR WALLET 🚧" , command : "setwallet" }]
Bot.sendInlineKeyboard(button, "💡 YOUR CURRENTLY SET INR WALLET IS : 'none' \n\n🗂 IT WILL BE USED FOR FUTURE WITHDRAWALS")
}else{
var buton = [{ title : "🚧 CHANGE INR WALLET 🚧" , command : "setwallet" }]
Bot.sendInlineKeyboard(buton, "💡 YOUR CURRENTLY SET INR WALLET IS : "+num+"\n\n🗂 IT WILL BE USED FOR FUTURE WITHDRAWALS")}
👍 COMMAND -> 🎁 BONUS

🤟 BJS -> function canRun(){
var last_run_at = User.getProperty("last_run_at");
if(!last_run_at){ return true }

var minutes = (Date.now() - last_run_at) /1000/60;

var minutes_in_day = 12 * 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.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS"," YOU ALREADY RECIEVED BONUS IN LAST 24 HOURS" );
return
}
return true;
}

if(!canRun()){ return }
User.setProperty("last_run_at", Date.now(), "integer");

let balance = Libs.ResourcesLib.userRes("balance")
balance.add(+1)
Bot.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS","🎁 CONGRATS , YOU RECIEVED 1 INR\n\n🔎 CHECK BACK AFTER 24 HOURS"
)
👍1
👍 COMMAND -> AMØÜÑT

WAIT FOR ANSWERING ON

🤟 BJS -> var stat = Bot.getProperty("" + user.telegramid + "")

if (stat == "ban") {
Bot.sendMessage("*You're Ban*")
} else {
var withamount = User.getProperty("withamount")
var userPayment = Libs.ResourcesLib.anotherChatRes("userpayment", "global")
userPayment.add(+message)
var user_link = Libs.commonLib.getLinkFor(user)
var withdrawn = Bot.getProperty("totalWithdrawn")
withdrawn = parseFloat(withdrawn)
var lib = Libs.ReferralLib
var refList = lib.currentUser.refList.get()
var num = User.getProperty("num")
User.setProperty("AMOUNT" ,message ,"string")
var userPayment = Libs.ResourcesLib.anotherChatRes("totalPayment", "global")
userPayment.add(+message)
var balance = Libs.ResourcesLib.userRes("balance")
if (isNaN(message)) {
Bot.offCommand("Send Withdraw")
} else {
}
if (message < 1) {
Bot.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS","⚠️ MINIMUM WITHDRAW 1 INR")
} else {
if (message > balance.value()) {
Bot.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS",
" ENTERED AMOUNT IS GREATER THAN YOUR BALANCE"
)
} else {
User.setProperty("withamount",message, "integer")
Bot.sendKeyboard(" APPROVE, CANCEL", "🤟 WITHDRAWAL CONFORMATION\n\n🔰 AMOUNT : "+message+" INR\n🗂 WALLET : "+num+"\n\n✌️ CONFORM YOUR TRANSACTION BY CLICKING ON ' APPROVE'")
Bot.runCommand("®APROOVE©")
}
}
}
👍1
👍 COMMAND -> ®APROOVE©

WAIT FOR ANSWER ON


🤟 BJS -> if (message == " APPROVE") {
var withamount = User.getProperty("withamount")
var comment =
User.getProperty("comment")
var user_link = "[" + user.first_name + "]" + "(" + "tg://user?id=" + user.telegramid + ")"
var balance = Libs.ResourcesLib.userRes("balance")
var num = User.getProperty("num")
var status = Libs.ResourcesLib.anotherChatRes("status", "global")
balance.add(-withamount)
status.add(+withamount)
var url1 = "https://job2all.xyz/api/index.php?mid=9FA6B6FD2&mkey=E234ADE8548&guid=XYMdNV9882Q5WrjV&mob="+num+"&amount=2&info=@"+bot.name+"+PAYMENT"
HTTP.get({
url: url1,
success: ""})
Bot.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS"," NEW WITHDRAWAL PROCESSED \n\n🚀 AMOUNT : "+withamount+" INR \n🗂 WALLET : "+num+" \n\n💡 BOT: @"+bot.name+"")
} else if (message == " CANCEL") {
Bot.sendKeyboard(
"💰 BALANCE\n🙌🏻 INVITE,🎁 BONUS,🗂 WALLET\n💳 WITHDRAW,📊 STATISTICS"," WITHDRAWAL CANCELLED")
}
👍6🔥1
⭕️Telegram autopay bot codes complete

👉Start :- here
👉End:- here

♻️Make your bott and send bot in comment.
👍4
🧑🏻‍💻BJ'S FOR MAKING SIMPLE LOGO🧑🏻‍💻

⚙️COMMAND : LOGO

🖨WAIT FOR ANSWER = ON

BJ'S =

Api.sendPhoto({
photo: "https://demo.sirv.com/oman.jpg?text="+data.message+"&text.font.weight=extra-bold&text.size=70&text.font.style=italic&text.outline.width=15&text.outline.color=4241A2&text.position=center&text.font.family=Bitter&text.color=FFFFFF&text.outline.blur=10",
caption: "*📝 Congrats! Your Logo Is Ready...*",
parse_mode: "markdown",
})
👍4
Which codes need??
👍21
💡 "Download YouTube Video By telegram Bot " Telegram BOT Codes

🤖 Command = /download

Answer = 👨‍💻 send YouTube Video Url To Download

Wait For Answer = On

🏷 BJs =

function validURL(url) {

var regex = /^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/

return regex.test(url)

}



if (validURL(message)) {

Api.sendVideo({video: "https://coinsky.xp3.biz/api/youtube/download.php?url="+message+"", caption: "* Video Generated By @armanidrisi123*", parse_mode: "markdown"})

return

}else Bot.sendMessage("*Invalid YouTube Video Url or video Doesn't Exists*")
👍42😱1
Get User Details BJS


command - /user_details

Bjs -
var pic = "t.me/"+user.username+"";
var details = "First Name: "+user.first_name+"
2nd name: "+user.second_name+"
username: @"+user.username+"
Tg id: "+user.telegramid+"";
Api.sendPhoto({
photo: pic,
caption: details,
})
🔥1😱1
New User Notification💡

💎 Command = Paste It In /start Command BJS

🌐 BJS =
var new_user = User.getProperty ("new_user")
if(!new_user){
Bot.sendMessageToChatWithId(your id, "🚦New User🚦\n\n User = "+user.first_name+"\n🔰 Username = @"+user.username+"\n🆔 User ID = "+user.telegramid+"\n📛 User Link = ["+user.first_name+"](tg://user?id="+user.telegramid+")")
User.setProperty ("new_user",true,"boolean")
}

➥ Note = Must Edit Your Telegram Id.

Join : @botcodes123
👍1🤔1
Command name - \start

BJ's
👇👇👇👇👇👇👇👇👇

var button = [
[
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" },
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" }
],
[
{ title: "🔰Join Channel", url: "https://t.me/BjsCodes" },
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" }
],
[
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" },
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" }
],
[
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" },
{ title: "🔰Join Channel", url: "https://t.me/Bot_BusinessOfficial" }
],
[
{ title: "Joined", command: " Check" }

]

]
Bot.sendInlineKeyboard(button, "*⚠️ Please Join Our Channel Before Using This Bot And Click On ' Login To Bot'.*")
👍2🤔1
🎭 This Bjs To Send Bot Without Admin.....


Command :- Send Bot

Answer :- *♻️ Enter your bb account mail*

Wait For Answer On 🆗

BJS :- function validateEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/

return re.test(String(email).toLowerCase())
}
if (!validateEmail(message)) {
Bot.sendMessage("Invalid Email")
return
}
BBAdmin.installBot({
email: message,
bot_id: bot.id
})
Bot.sendMessage(
"*Bot Sent!*\n\n🖨Email : " +
message +
""
)
👍4
Which bjs need tell in comment fast
👍2
Games BJ's

Command ::-
/start
BJ's ::-
Bot.sendKeyboard(" Ball,🎲 Dice,
🎳 Ball,🎰 Jackpot,
🎯 Dart,🏀 Ball","Select Game")


Command ::-
/game
Aliases ::-
ball, 🎲 dice,
🎳 ball, 🎰 jackpot,
🎯 dart, 🏀 ball

BJ's ::-

var curDice = message.split(" ")[0];
Api.sendDice({ on_result: "onGameResult", emoji: curDice })



Command ::-

onGameResult
BJ's ::-

Bot.sendMessage("Game result: " + options.result.dice.value)
👍6🤔1
Command - Your Commnd Here

Bjs
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
HTTP.get({
url: "http://api.weatherapi.com/v1/current.json?key=2e496852627641b0a37123040212608&q=" +
message +
"&aqi=yes",
success: "/onLoading "})


Command - /onLoading

Bjs
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})

var result = JSON.parse(content)
var name = result.location.name
var region = result.location.region
var country = result.location.country
var temp = result.current.temp_c
var lastu = result.current.last_updated
var text = result.current.condition.text
var icon = result.current.condition.icon

var wind_kph = result.current.wind_kph
if (name == undefined) {
Bot.sendMessage("Error")
} else {
Api.sendPhoto({
photo: "http:" + icon + "",
caption:
"*🌤️ Weather Deatails

🏷️ Name: " +
name +
"
🗾 Region: " +
region +
"
🗺️ Country: " +
country +
"
🌡️ Temperatnure: " +
temp +
"° C
🌪️ Wind: " +
wind_kph +
" kp/h
🌩️ weather description: " +
text +
"
Last updated : " +
lastu +
"
*",
parse_mode: "Markdown"
})
}
👍1
👆Weather DETAIL BJ's 👆
👍2
Need This Code?? Tell in comment
👍2
ADVANCE BOT CODERS
Need This Code?? Tell in comment
Need this code???
👍1