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
Can we should start giving PHP codes example ?🤔

#NeedYourSupport😅
Want User Referral Count Without Recount

🧩 Command:- /refCount
🖥 BJS:-

function getRefCount(userId){ 
if(!userId){ userId = user.id }
var refsCount = User.getProperty({
name: 'REFLIB_' + 'refsCount',
user_id: userId
});

if(!refsCount){ refsCount = 0 }
return refsCount;
}

Bot.sendMessage('Your Referral Count :-' + getRefCount())

👨‍💻 Code Updated :- @sohamdeogaonkar1
📣 Channe
l :- @bots_bussiness

⚠️ Please report error to me if happen
s

⚠️ Anyone may already have made this.But we had not checked their Bjs .We have made this Bjs with references with demo bot of bb.Then also anyone have issue with it can contact me
👮‍♂️ Question From @Flaming_Kitty

How to pin the Message Send by the Bot

🧩 Command :- /send
🖥 BJS :-
let text = "text to send"

Api.sendMessage({
text: text,
on_result: "/pin"
})


🧩 Command :- /pin
🖥 BJS :-

var chat_id = options.result.chat.id
var message_id= options.result.message_id

Api.pinChatMessage({
chat_id: chat_id,
message_id: message_id
})


👨‍💻 Code Developer :- @sohamdeogaonkar1
📣 Channel :- @bots_bussiness

⚠️ Please report error to me if happens

⚠️ Anyone may already have made this.But we never check their Bjs . We have made whole Bjs By our own.If then also anyone have issue with it can contact me
📝 Reference Question :- https://t.me/botsbus/1466

👮‍♂️ Question From @kswami9

What's the error in given reference(question) code(BJS)

❇️ Answer:-

Heavy callback data
According Telegram Bot Api, call back data should not exceed 64 bytes
But due to long data, it is exceeding belong 64 bytes,
In my condition it got 84 bytes. It would varies as data is different for everyone.

✳️ Solution:-
We would need to use data passer through the property
By the following way you can pass your data to next command without heavy callback data.

🧩 Command :- /your_command
🖥 BJS :
var wallet = "TUiFo3gskj9AGtQnrYuumXJeTQ8szUAshp"
var cur = "TRX"
var amount = 0.0001
var user_link = "@"+user.username+""
var admin = 1028030594

var tcx = "* New Withdrawal Request From User* \n*▬▬▬▬▬▬▬▬▬▬▬*\n* UserID :* "+user.telegramid+"\n* Address:* "+wallet+"\n* Amount :* "+amount+"* "+cur+"*\n* Referrals :* 1 *User(s)*\n*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*\n* Bot Link:* @"+bot.name+""

var tem_passer_key = new Date().getTime(); + Math.floor(Math.random() * 1000);
var tem_passer = {
user:user,
cur: cur,
amount: amount,
wallet:wallet
}

User.setProperty(tem_passer_key,tem_passer,json)
var button =
[[{text:"Pay Auto",callback_data:"/lollauto " + tem_passer_key},{text:"Reject",callback_data:"/reject"+" "+user.telegramid+""}]]

Api.sendMessage({chat_id:admin,text:tcx,parse_mode:"Markdown", reply_markup:{inline_keyboard:button}})

🧩 Command :- /lollauto
🖥 BJS :-
if(!params){return}

//receiving data
var tem_passer = User.getProperty(params,{})

//deleting property
User.setProperty(params, null, "float");

//You can use this data according
Bot.inspect(tem_passer)

👨‍💻 Code Developer :- @sohamdeogaonkar1
📣 Channel :- @bots_bussiness

⚠️ Please report error to me if happens

© Copying and publishing code anywhere or selling the above code is strictly not allowed. Right of the above codes belong to the code owner and owner of the this channel. Still if anyone have any problem regarding copyright can contact us.
How to Create Short Link using AdClickersBot API

❇️ Step 1 :-
GO TO :-
@AdClickersBot -> ❇️ Captcha Task -> 🔗 Short Link

❇️ Step 2 :-
Get the api key from the url provided in the response


🧩 Command :- /create_short_link
⌨️ Answer :- 🔗 Enter thr url which you want to shorten
Wait for reply
🖥 BJS :-

function isValidURL(value) {
var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi;
var regexp = new RegExp(expression);
return regexp.test(value);
}

if(!isValidURL(message)){
Bot.sendMessage('*⚠️ Please Enter Correct Url to shorten the link*')
return
}

var link = 'https://adclickersbot.com/shorten'
var api_key = '613cd0b0017ccca172065987'
var url = message

HTTP.get({
url: link + '?api=' + api_key + '&url=' + url,
success: 'onLinkCreate',
error: 'error'
})

🧩 Command :-
onLinkCreate
🖥 BJS :-

if(!content){return}
content = JSON.parse(content)

if(content.status){
Bot.sendMessage('*❇️ Your shorten Link :-* \n' + content.shorten_url)
}else{
Bot.sendMessage('*⚠️ Something went wrong*')
}

👨‍💻 Code Developer :- @sohamdeogaonkar1
📣 Channel :- @bots_bussiness

⚠️ Please report error to me if happens

© Copying and publishing code anywhere or selling the above code is strictly not allowed. Right of the above codes belong to the AdClickersBot and owner of the this channel. Still if anyone have any problem regarding copyright can contact us.
Which Type Of Coding Do You Want I am ready to make 😘
If You want Help then Contact : @Piyush_Raj007 or @Aman_Raj01
BB Points Bot Launched

Bot -
https://t.me/BBPoints_TBot?start=1180293826

Earn Free BB Points.

Per Refer - 0.50 BB points

Min Withdrawal - 5 BB points

No Fake Refer and Only For Real Users
We are making a new seller bot those people who want to add their codes & bots & phps then message me @Aman_raj01
All php available message for buy : @Aman_Raj01
Are You Active?