TG Telegram Group & Channel
Advanced Bot Codings™ | United States America (US)
Create: Update:

Want to get top referral with correct order (For new bot with new referral lib)


🧩Command:- /top
🖥BJS:-

let list = Libs.ReferralLib.getTopList();

list.order_by = "integer_value";
list.order_ascending = false
list.page = 1
list.per_page = 10

var items = list.get();
//Bot.inspect(items);

var msg = 'Top list: ';
var prop;
for(var ind in items){
prop = items[ind]
msg = msg + "\n" +
String( parseInt(ind) + 1 ) + "." +
Libs.commonLib.getLinkFor(prop.user) + ": 👨" +
String(prop.value)
}

Bot.sendMessage(msg);


👨‍💻 Code Updated :- @sohamdeogaonkar1

⚠️ Please report error to me if happens

⚠️ 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

Want to get top referral with correct order (For new bot with new referral lib)


🧩Command:- /top
🖥BJS:-

let list = Libs.ReferralLib.getTopList();

list.order_by = "integer_value";
list.order_ascending = false
list.page = 1
list.per_page = 10

var items = list.get();
//Bot.inspect(items);

var msg = 'Top list: ';
var prop;
for(var ind in items){
prop = items[ind]
msg = msg + "\n" +
String( parseInt(ind) + 1 ) + "." +
Libs.commonLib.getLinkFor(prop.user) + ": 👨" +
String(prop.value)
}

Bot.sendMessage(msg);


👨‍💻 Code Updated :- @sohamdeogaonkar1

⚠️ Please report error to me if happens

⚠️ 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
👍51🔥1🥰1👏1😁1


>>Click here to continue<<

Advanced Bot Codings™




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)