New Advanced Codings
482 subscribers
70 photos
1 video
1 file
125 links
Hello Friends Welcome To Our Channel We Will Provides You Here Advanced BJS, PHP ,JS, HTML , Codes if you didn't joined our Channel let's join 🔥
Download Telegram
function hello(message) {
var greetings = ""

Bot.sendMessage(greetings + message)
}

function doTouchOwnLink() {
Bot.sendMessage("*You're Trying To Invite You're Self *")
}

function doAttracted(user) {
hello("Referal: " + user)
}


function doAtractedByUser(refUser) {
hello("")
var balance = Libs.ResourcesLib.anotherUserRes("balance", refUser.telegramid)
balance.add(5)
Bot.sendMessageToChatWithId(refUser.chatId, "*A new user just joined using your refferal link🎉\n\nBonus: 5 Rs*");
}
function doAlreadyAttracted(){
Bot.sendMessage("*You Already Started The Bot *");
}

var trackOptions = {
onTouchOwnLink: doTouchOwnLink,
onAttracted: doAttracted,
onAtractedByUser: doAtractedByUser,
onAlreadyAttracted: doAlreadyAttracted
}

Libs.ReferralLib.currentUser.track(trackOptions);
var welco = User.getProperty("welco")
if (welco == undefined) {
var user_link =
"[" + user.first_name + "]" + "(" + "tg://user?id=" + user.telegramid + ")"
var stat = Libs.ResourcesLib.anotherChatRes("stat", "global")
stat.add(1)

}
User.setProperty("welco", user.telegramid, "text")
var button = [{ title : "Say Wlc To user.first_name" , command : "/reply" + user.telegramid }]


var u = Libs.ReferralLib.currentUser.attractedByUser();

var new_user = User.getProperty ("new_user")
if(!new_user){
var adminid = 1326749214


var msg = "[" +
user.first_name +
"](tg://user?id=" +
user.telegramid +
")"

if(u){
msg = "*🆕 New User!*"+"\n\nUser:-"+"[" +
user.first_name +
"](tg://user?id=" +
user.telegramid +
")" + "\n\nUser id : "+user.telegramid+"\n\nReferred By :" + "[" +
u.first_name +
"](tg://user?id=" +
u.telegramid +
")"
}else{
msg = "*🆕 New User!*"+"\n\nUser:"+"[" +
user.first_name +
"](tg://user?id=" +
user.telegramid +
")" + "\n\nUser id : "+user.telegramid+"\n\nReferred By :" + " From Channel "
}


Bot.sendInlineKeyboardToChatWithId(1326749214, button, msg);
User.setProperty ("new_user",true,"boolean")
}
Bot.runCommand("main_menu2")
Any BJs You Want Contact Us - @ChannelSeller22
Any BJs You Want Inbox Here - @chatsbotbusiness
Example -
#request_code
BJs Name - any
You Want Redeem Code BJs
Anonymous Poll
93%
Yes
7%
No
Command = Create Redeem Code
BJs
if (user.telegramid == 1326749214){
Bot.runCommand ("/CreateRedeemcode_1");
}else{
Bot.sendMessage("You are not admin")
}
Command = /CreateRedeemcode_1
BJs =
if (user.telegramid == 1326749214){
var key = [[{title:"Set 10 digit redeem code",command:"/MakeCode✓"}]]
Bot.sendInlineKeyboard(key, "Welcome to the admin panel")
}else{
Bot.sendMessage("You are not an admin")
}
Command = /MakeCode✓
Answer = Send The Redeem Code You Want To Set

Wait For Answer = On

BJs =
var options = { myData: message }
if (message.length < 10) {
Bot.sendMessage("Need to enter 10 digit codes")
return
}else{
Bot.run({ command: "SetValue✓", options })
Command = SetValue✓
Answer =
Set the amount you want to give to user for redeem code

Wait For Answer = On

BJs =
var tt = options.myData
Bot.sendMessage("Value for the code: " + tt + " has been set")
Bot.setProperty(tt, message,"integer")
Command = © Redeem Code
Answer = Send the redeem code, which you want to redeem.

Note: The codes are case sensitive.


Wait For Answer = On

BJs =
var ti = Bot.getProperty(message)
if(message.length < 10){
Bot.sendMessage("Wrong code")
return
}else
if (!ti) {
Bot.sendMessage("Invalid code")
return
} else if (ti == "null") {
Bot.sendMessage("This code is already redeemed")
return
} else var balance = Libs.ResourcesLib.userRes("balance")
Bot.setProperty(message, "null")

balance.add(ti)
Bot.sendMessage(
"Congratulations, code successfully redeemed, added to balance : " +
ti +
"Rs"
)
return
Join Our Discussion Group
https://t.me/joinchat/mpyaHZXqPNRlZDll
Anyone Need Help Ask Here
You Want Mail OTP BJs Please Share This Channel And Complete
170 Subscriber Then I Give Mail OTP BJs Please Share 🙏
Anonymous Poll
90%
Ok 👌
10%
No
Guys Please Share Our Channel 🙏
Command = Auto
BJs =
var withdrawn = Bot.getProperty("totalWithdrawn");
withdrawn = parseFloat(withdrawn);
var wallet = User.getProperty("wallet");
var balance = Libs.ResourcesLib.userRes("balance")
if(message < 60 ){
Bot.sendMessage("_ Minimum Withdraw 60 Rs_")
}else{
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n)
}
var value = message
if (!isNumeric(value)) {
Bot.sendMessage("*📛 Invaild value. Enter only numeric value. Try again*", {
is_reply: true
})
return
}
var history = User.getProperty("history")
var time = Libs.DateTimeFormat.format(new Date(), "dd/m/yyyy h:M:s T") + "M"
var amount = message
if (history == undefined) {
var newh =
"-------------------------------------------------------------------------------------\n" +
" Withdraw Amount : " +
amount +
"₹" +
"\n⚕DATE " +
time
User.setProperty("history", newh, "string")
} else {
var nwh =
"-------------------------------------------------------------@"+bot.name+"------------------------" +
"\n Withdraw Amount : " +
amount +
"₹" +
"\n⚕ DATE " +
time
var toal = nwh + history
User.setProperty("history", toal, "string")
}
if(message > balance.value()){
Bot.sendMessage("_ Maximum Withdraw Rs_"+balance.value().toFixed(6)+" Rs_")
}else{
Bot.sendMessage("*📤 Withdrawal Sent 📤\n\n💳 Transaction Details =\n 💰Amount = "+message+" Rs\n💼 Wallet =* "+wallet+"\n\n *May Be It Will Take Upto 24 Hours To Complete Your Payment\n\ncheck history by clicking on 👉/history*")
balance.add(-message)
Api.sendMessage({
chat_id: "@BotPaymentProofs",
text: "*🔋 New Approved Payout 🔋\n\n▪️ Status = Pending..\n▪️ User Id =* "+user.telegramid+"\n▪️ Amount = "+message+" Rs\n\n*📱Paytm Number =* "+wallet+"\n\n*👮🏻‍♂ Bot = @"+bot.name+"*" ,
parse_mode: "Markdown"})
}} Bot.sendMessageToChatWithId(1326749214, "*📌 New User Withdraw Requested.\n\n❤️Name :- "+user.first_name+"\n❤️Id :- "+user.telegramid+"\n 💼 Wallet :- "+wallet+"\n❤️Amount :- "+message+"\n\nBot :- @"+bot.name+"*")

Bot.runCommand("main_menu")
Command = /history
BJs =
var his = User.getProperty("history")
if(his == undefined){
var go ="🕝 Your All Withdrawal"+"\n----------------------------------------------------"+"\nNo withdraw Found";
Bot.sendMessage(go)
}else{
Bot.sendMessage("🕝 Your All Withdrawal\n\n"+his)
}
let u = Libs.ReferralLib.currentUser.attractedByUser()
let chanell = Libs.ReferralLib.currentUser.attractedByChannel()
let msg = "👤 You Are Invited By - "

if (u) {
msg = msg + "@" + u.username
} else if (chanell) {
msg = msg + "chanell: " + chanell
} else {
msg = "*You was not Invited By Link🔗*."
}

Bot.sendMessage(msg)