tgoop.com/Advanced_Bot_Codings/311
Last 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
BY Advanced Bot Codings™
Share with your friend now:
tgoop.com/Advanced_Bot_Codings/311