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
Popup Alert Bjs ♻️

Api.answerCallbackQuery({callback_query_id: request.id,text: "Alert",show_alert: true })
πŸ‘6
❓ How To Add Password Validation In Bot

πŸ’‘ Command = Your Command Here

♻️In Answer : = *Send The Password*

βœ… Wait for answer = On

🌐 BJS =
var pass = "Your Password Here Which You Want To Set"
if (message == pass) {
Bot.sendMessage("*βœ…Right Password*")
Bot.runCommand("Your 2nd Command")
} else {
Bot.sendMessage("*⛔️Wrong Password*")
}


©️ @botcodes123
πŸ‘2
πŸ‘¬ Refer Link With QR BJS
βž–βž–βž–βž–βž–βž–βž–βž–

Command--> Your Command

Bjs--> let stat = Bot.getProperty(""+user.telegramid+"");

if (stat=="ban"){
Bot.sendMessage("*You're Ban*");
}else{

let res = Libs.ResourcesLib.userRes("referral");
let reflink=Libs.ReferralLib.currentUser.getRefLink(""+bot.name+"","Bot");
let lib = Libs.ReferralLib
var refList = lib.currentUser.refList.get();
var txt = "*πŸ’‘ Bot Refferal System

πŸ‘¨β€πŸŒΎ You can earn 1rs/per Successfull Refer
Refer Amount When Credit Your Friends Join All Channnel.

πŸ‘« You have "+refList.length+" Referrals.

πŸš€ Your referal links : "+reflink+"*"


var qrChartUrl = "https://chart.apis.google.com/chart?cht=qr&chs=250x250&" +
"chl=" +
reflink +
"&chld=H|0"

Api.sendPhoto({
photo: qrChartUrl,
caption: txt,
parse_mode: "markdown"
})

}
πŸ‘5
Transfer Balance ➿ BJS
βž–βž–βž–βž–βž–βž–βž–βž–

♻️ Command = Transfer

♻️ Answer = Enter Your Friend Telegram Id For Transfer Your Balance.

♻️ Wait For Answer = On

♻️ BJS = Bot.run({
command: "/Transfer",
options: { tgid : message }
})


πŸ›‘ Now, Make A New Another Command.

♻️ Command = /Transfer

♻️ Answer = πŸ›‘ Enter An Amount For Sending To Your Friend's Account.

⚠️ Note = It Will Deducated From Your Account Balance.


♻️ Wait For Answer = On

♻️ BJS =
var balance = Libs.ResourcesLib.userRes("balance")
var tgid = options.tgid
if(message > balance.value()) {
Bot.sendMessage("⚠️ Insufficient Balance For This Transaction.

πŸ“› You Have Only "+balance.value()+" Rs.")
}else{
var friend = Libs.ResourcesLib.anotherUserRes("balance",tgid)
friend.add(+message)
balance.add(-message)
Bot.sendMessage("βœ… Amount "+message+" Rs Has Been Transfer To "+tgid+".

πŸ’΅ Your Current Balance : "+balance.value()+" Rs.")
}
πŸ‘7❀1
NodeJsCBBot.zip
83.3 KB
πŸ‘8
πŸ‘2πŸ₯°2
urlshort By (Arman Idrisi).zip
4.2 KB
🎁 Url Shortner PHP Giveaway

βœ… Developer: @Mohd_arman_idrisi01

πŸ‘‰ Join: @botcodes123

♻️Demo: http://armancampaigns.tk/Short
πŸ‘6
πŸ‘7
βœ…Get User Details BJS
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–

⭐command - your command

Bjs -
var pic = "t.me/"+user.username+"";
var details = "First Name: "+user.first_name+"
LAST name: "+user.second_name+"
username: @"+user.username+"
Tg id: "+user.telegramid+"";
Api.sendPhoto({
photo: pic,
caption: details,
})
πŸ‘6❀2
πŸ’ŠGender Predict BJS
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–

Gender Predict Code

Command: /predict

Answer: *Enter Your Name*

Wait for answer Onβœ…

Bjs: HTTP.get({
url: "https://api.genderize.io/?name="+message+"",
success: "sys/gender"
})

Command: sys/gender

Bjs: var msg = content
var name = msg.split(/"/)[3]
var gender = msg.split(/"/)[7]
var pro = msg.split(/"/)[10]
Api.sendMessage({
text:
"*πŸ”© Gender Predicted

πŸ’Š Name = " +
name +
"
πŸ›’ Gender = " +
gender +
"
🎭 Probability = " +
pro +
"

β˜† Deatails By : @"+bot.name+"*",
parse_mode: "markdown"
})
πŸ‘7
Use of "Api." in BB to send or delete
============================

FOR SENDING PICTURE
Api.sendPhoto({photo: "Photo Link"})

FOR SENDING MSG TO CHANNEL
Api.sendMessage({chat_id: "channel Username", text: "Your Text"})

FOR SENDING STICKERS
Api.sendSticker({ sticker: "Sticker Link", })

FOR DELETING PRIVIOUS BOT MESSAGE
Api.deleteMessage({ message_id: request.message.message_id })

FOR DELETING THE MESSAGE THAT YOU SENT TO BOT
Api.deleteMessage({chat_id:chat.chatid,message_id:request.message_id})

FOR TYPING BOT
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})


FOR REMOVING KEYBOARD
Api.sendMessage({ text: '⌨️ Keyboard Removed',
reply_markup: JSON.stringify({
hide_keyboard: true
})
})


FOR SENDING EMOJI
Api.sendDice({emoji:"🎯"})
//You Can Use other emoji also


TO SEND ANY FILE LIKE APK
Api.sendDocument({
chat_id: user.telegramid,
document: "LINK",
caption: "description"})



Photos or Video's in an album
Api.sendMediaGroup({
media: [
{type: "photo",
media: "your photo link here",
caption: "caption u want here",
parse_mode: "your parse mode here if you want"},
{type: "video",
media:"your video link here"}
]
})
πŸ‘3
πŸ‘8
πŸ‘‰ Repo link https://github.com/Armanidrisi/chatgpt-python-bot

πŸ‘‰ Deploy same process se hoga jaise isme kia h :- https://youtu.be/z1UY8UjQpKw

πŸ‘‡Any Issue Comment Down
πŸ‘6
ADVANCE BOT CODERS
πŸ‘‰ Repo link https://github.com/Armanidrisi/chatgpt-python-bot πŸ‘‰ Deploy same process se hoga jaise isme kia h :- https://youtu.be/z1UY8UjQpKw πŸ‘‡Any Issue Comment Down
Commands :-
1. git clone <your git url> bot
2. cd bot
3. pip3 install -U -r requirements.txt
4. python python-chatgpt-bot.py

___

How To Deploy --> https://youtu.be/z1UY8UjQpKw
πŸ‘7
πŸ‘3😱1
πŸ€”4πŸ‘2
New Logo Maker Bjs ⚑️
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–

♻️ Command 1: Your Command

πŸ‘‰ Answer: *Send Your Name*

βœ… Wait For Answer : on

🎁 Bjs:
let theme = "https://textpro.me/create-logo-joker-online-934.html" //You Can Get More This url like this from textpro.me
HTTP.post({
url: "https://textpro-logo-maker-api-sihf.vercel.app/create",
body: {
"theme": theme,
"text":message
},
success:"/success"
})
♻️ Command 2: /success

πŸ‘‰Bjs:
let data = JSON.parse(content)

if(data.status==true){
Api.sendPhoto({
photo:data.data,
caption:"*Logo Generated Success ✨️\n\nGenerated By: @"+bot.name+"*",
parse_mode:"markdown"
})
}else{Bot.sendMessage("Internal Server Error")
}
Credit: @Mohd_arman_idrisi01
Api & Coded By : @Mohd_arman_idrisi01
πŸ‘9πŸ”₯1πŸ€”1
πŸ‘9❀1
thumbnaildownloader_bot.zip
1.5 KB
Keep Support @botcodes123 for more
πŸ‘6
weather_bot.zip
1.5 KB
Weather Detail Telegram Bot In Python
πŸ‘10πŸ’”1