Bots.business Unofficial Channel
رفتن به کانال در Telegram
This is an unofficial channel of bots.business, the professional bot making platform. Here we help member to get their BJS Owner :- @sohamdeogaonkar1
نمایش بیشتر248
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
📝 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.Do u use any userbot and want to delete the bb ads of any bot incoming to your account
Like ultroid,etc
And want it's plugin
Are u interested
⚠️ Important Notice
❇️ Anyone who want long lasting ad blocker can pm me with bot token
🔰 Points to remember
1) Who trust me only pm me
2) Send me your bot token
3) Don't ask for the source code,etc
4) Currently will host only 5 bots
5)I can't guarantee how long will it block the ads.But will continue to work 24 hrs
❓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❓How to pin the Message Send by the Bot
🧩 Command :- /send
🖥 BJS :-
Api.sendMessage({
chat_id: "channel_id",
text: message,
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
})
Bot.sendMessage("Message has been send and pinned in the channel")
❗️Notes :-
The bot must be an administrator with
'can pin messages' admin right in the supergroup.
or
'can_edit_messages' admin right in the channel.
🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Anyone would like to try BB ads blocker
❇️ Interested member should pm me
⚠️ Note:-
Trusted member should only pm me.
It will require your bot token.
Do u want new contests with bb points giveaway for bot or code development
❓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
📣 Channel :- @bots_bussiness
⚠️ 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 Fix for the My Info and My referral List (For new bot with new referral lib)
🧩 Command:- /myref
🖥 BJS:-
let friend = Libs.ReferralLib.getAttractedBy();
let msg = "You was attracted by: "
if(friend){
msg = msg + "user " + Libs.commonLib.getLinkFor(friend);
}else{
msg = "You was not attracted."
}
Bot.sendMessage(msg);
🧩 Command:- /reflist
🖥 BJS:-
let refList = Libs.ReferralLib.getRefList()
if (!refList.exist) {
Bot.sendMessage("No any affiliated users")
return
}
if (!refList.last_calc_time) {
refList.recount({
// this command will be runned after recount
onComplete: "/reflist"
})
return
}
let msg = ""
// only 100 first users here
// for other users you need use pagination:
// https://help.bots.business/bjs/lists#paginating
let users = refList.getUsers()
for (var ind in users) {
user = users[ind]
msg = msg + "\n👤 " + Libs.commonLib.getLinkFor(user)
}
if (users.length < 9) {
var count = users.length
} else {
var count = refList.count
}
let last_updated_time = (new Date() - new Date(refList.updated_at)) / 1000
last_updated_time = last_updated_time.toFixed(4)
msg =
"*Total users:* " +
refList.count +
"\n _the first user was tracked:_ \n" +
" _" +
refList.created_at +
"_" +
"\n----" +
msg +
"\n----" +
"\n*Last recount*" +
"\n Ago: " +
last_updated_time +
" sec\n Time: " +
refList.last_calc_time.toFixed(4) +
" sec"
if (needRecount(refList)) {
msg = msg + "\n Recount started..."
refList.recount({
// this command will be runned after recount
// onComplete: 'onCompleteListRecount'
})
} else {
msg =
msg +
"\n Next recount after: " +
needToWaitForNextRecount(refList).toFixed(4) +
" sec"
}
Bot.sendMessage(msg)
// you need to recount list sometimes
// such recount can be very slowly so we need to perform it not very often
function delayForNextRecount(list) {
// Recount list not more often then 100 sec per each 0.1 last calc time
// so if last calc time is 10 secs we need to wait 24 hours for new calc
return (100 * list.last_calc_time) / 0.1
}
function needToWaitForNextRecount(list) {
return delayForNextRecount(list) - lastUpdatedSecAgo(list)
}
function needRecount(list) {
return needToWaitForNextRecount(list) < 0
}
function lastUpdatedSecAgo(list) {
return (new Date() - new Date(list.updated_at)) / 1000
}
👨💻 Code Updated :- @sohamdeogaonkar1
📣 Channel :- @bots_bussiness
⚠️ 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 meDo u want solution for 📜 My Refs for referral Lib
❓ 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 mehttps://t.me/TestBbRefBot?start=user2830972
Its not official bb
Please do for test purpose
If u have fake/another accounts
Please attract it will your link
I want to test top ref list
Do u want referral Lib with top leaderboard
Limitations:- U need to specify the amount of top users at start at one time.And it will handle only that number of top users . U cant increase afterwards.So no issue will be there with server load
🎉 New Official Captcha Api Launched!
🧩 Captcha :- https://shadabalam.cf/api/captcha.php
📎 Format To Use Api:
=================
--> https://shadabalam.cf/api/captcha.php?captcha=<5-letter-text-&-number>
--> Example: https://shadabalam.cf/api/captcha.php?captcha=sh345
❤️ Keep Supporting Us For More Api. [ Complete 1500 Subscribers ]
