Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
@BotsBusinessAdminBot have "Balance" button now.

⚠️ Please note: It is just testing!

All balances will be removed after testing!

Revenue Sharing development in progress! πŸŽ‰
πŸ‘6❀3πŸ₯°1
New Lib - TopBoardLib

TopBoardLib is a lib designed for managing a leader board in a chatbot. It provides functionality for adding, updating, retrieving, and resetting user scores, as well as managing multiple leader boards.

Command /bonus
// we  just add +5 to user's Score
let userScore = User.getProperty("score") || 0;
userScore = userScore + 5;

// Adding this points to a user
TopBoardLib.addScore({
value: 5
// boardName: "Game" // you can pass boar name
});


command /top:
// Retrieving the leaderboard
let leaderboard = TopBoardLib.getBoard();

let leaderboardText = "The leaderboard is currently empty.";

// Check if the leaderboard is not empty
if (leaderboard.length > 0) {
// Create a string to represent the leaderboard
leaderboardText = "πŸ† Leaderboard πŸ†\n\n";
leaderboard.forEach((entry, index) => {
leaderboardText += `${index + 1}. ${entry.tgId}: ${entry.value} points\n`;
});
}

// Send the leaderboard
Api.sendMessage({ text: leaderboardText });


Full help:
https://help.bots.business/libs/topboardlib

it is based on
https://t.me/botsbus/1949

#topList #topBoard
πŸ‘4❀2πŸ‘Ž2πŸ”₯1
Random "oh. Error happened" - fix in progress
πŸ‘6❀1πŸ‘1
Random "oh. Error happened" - fixed

(it was just 1 hour bug)
❀5πŸ‘4
RefLib: TopList - fixed

RefLib use TopBoardLib now by default.
So Top Ref List is fixed.

What i need to do?
Do you already use RefLib.getTopList() ? And sorting is not working?
It is working now!

else - use RefLib.getTopList() - please see help

By default we have 10 members on TopList. You can pass topBoardMaxCount param with your count:
...
RefLib.track({
onTouchOwnLink: onTouchOwnLink,
onAlreadyAttracted: onAlreadyAttracted,
onAttracted: onAttracted,

// you can use "", "r" and etc for prefix
// if you change it - you need to pass same linkPrefix for
// RefLib.getLink() also!
// Prefix "user" is used by default
// linkPrefix: "user",

// you can pass debug for external debug info
//debug: true,

// we can use List or TopBoardLib for Top List
// by default TopBoardLib is used
// useList: false

// if useList - false (TopBoardLib is used)
// you can pass max board count
// it is 10 by default
topBoardMaxCount: 5
});



Please test our Demo Ref bot by link:
https://t.me/DemoReferalTrackingBot?start=user1860

You can try Top List here
πŸ‘7πŸ₯°2πŸ‘»2❀1
Bots.Business
RefLib: TopList - fixed RefLib use TopBoardLib now by default. So Top Ref List is fixed. What i need to do? Do you already use RefLib.getTopList() ? And sorting is not working? It is working now! else - use RefLib.getTopList() - please see help By default…
Update Regarding TopBoard and RefLib:

We regret to inform you that a bug has been identified in the TopBoard system associated with RefLib. The issue pertains to:
Bug Description:
There is an incorrect assignment of the user count for Ref Link owners to users who were attracted by them.


To address this, we are planning an update to the Lib Code in next hours. Unfortunately, this necessitates the removal of all existing data on TopBoard for RefLib. We understand the inconvenience this may cause and sincerely apologize for this incident. Rest assured, we are taking immediate steps to rectify the situation and prevent future occurrences.

UPDATE:
RefLib updated. Bug is fixed
πŸ‘5πŸ™2πŸ€”1πŸ¦„1😎1
You can clear your track data now in @DemoReferalTrackingBot (only for attracted user not for Ref Owner) and retest ref link again

Please rerun bot with /start again for this command.

You can use this link:
https://t.me/DemoReferalTrackingBot?start=user1860
Bots.Business
User.getProperty("score")
Some of users confused here with TopBoardLib.

We have prop "score" here.

But with TopBoardLib you can:
- use any numeric value (integer or float, positive or negative)
- use prop like
let value = User.getProperty("score")

- use res value like
let value = Libs.ResourcesLib.userRes("balance").value

- use user's input like
let value = parseFloat(message)
(don't forget that user must input numeric only)

- use message index like
let value = message.id
(I don't know why we need this but it is possible)

- income webhook data
- any numeric data!

after this your code will be:
let value = ... // you already have it 

// Adding this points to a user
TopBoardLib.addScore({
value: value
// boardName: "YOU BOARD NAME" // you can pass boar name
});
πŸ€”6🀣4πŸ‘2πŸ‘Ž2😱1
❓ Do you also want to learn "Bot Making" ? But can't find anything to learn it.

πŸ₯³ Don't worry, I've brought a full "Telegram Bot Making Course" for free πŸ†“ from where you can learn bot making from scratch to advance

πŸ‘‰ Here's the 1st lecture for today :- https://youtu.be/CNhZg7MZBvg
❀10πŸ‘4πŸ‘Ž4πŸ”₯1
Forwarded from Bots.Business
Seems Telegram have some troubles now
πŸ‘11πŸ‘Ž5
We have DDoS attack now.
Work in progress
🀣38πŸ‘4πŸ‘Ž2😎2πŸ€ͺ1
Bots.Business successfully integrates its advertising platform with AdHub.plus, providing you with the ability to manage your advertising campaigns. With our service, you can easily place ads, adjust parameters, and monitor statistics.

We are continuing the integration process. The broadcasting feature is currently active, and we plan to add the instant broadcasting option soon.

In collaboration with AdHub.plus, we also plan to share a portion of the advertising revenue with bot owners. This will significantly enhance the effectiveness of your ads and attract more active bot owners.


Our plans:
βœ… Active Broadcasting via AdHub.Plus
⭕️ Instant Broadcasting via AdHub.Plus
⭕️ Statistics & Tracking
⭕️ Revenue Share for bot owners

Progress: 25%

There is much work ahead. We are actively working on improving the service and expanding its functionality in partnership with AdHub.plus. Try our service today, register.

We need your feedback!
πŸ”₯19🀣7πŸ‘3❀1πŸ‘Ž1
Downtime in progress
🀣21πŸ‘Ž10πŸ‘6πŸ™5❀2πŸ₯°2πŸ€”1
Fix in progress
🀣22❀7πŸ‘Ž7πŸ‘6πŸ”₯3πŸ™2
start working...
🀣20πŸ‘7πŸ‘Ž6πŸ™3❀2
Uptime
🀣20πŸ‘8πŸ‘Ž4πŸ™4❀3
https://telegra.ph/Your-own-database--API-03-15

This topic requires expert level.

You can use hasura.io for your own database + making API gateway. With Hasura, you can store any data and perform any search operations.
πŸ”₯7❀4πŸ‘3
The Problem of Poor Variable Naming Solved with... Brainfuck!

For too long, our users have suffered from non-descriptive, uninformative, and confusing variable names in their code. Our analysis showed that over 60% of all bugs and code comprehension issues stem from this common problem.

But our engineers have found an elegant solution to this programmer's headache - transitioning to the Brainfuck programming language! Brainfuck does not use variables at all. The code operates solely on an array of bytes and a data pointer. No more issues with choosing names!

Take, for example, this line of code:
var balace = User.getProp("money")

And here's its Brainfuck equivalent:
++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++.>+.+++++++..+++.>++.<<++++++++++++++.>.+++.------.--------.>+.>.

Isn't that sheer poetry?

πŸŽ‰ We have already launched an automatic converter that will translate all existing code on our platform into Brainfuck
Hooray, no more aaaaaaa or data123!

We understand not everyone may be ready for such a progressive change. So if you want to keep your code as-is, simply create an empty bot named "i will use good variable names" in your account.


"At first, it looked daunting," shares one of our users, "but after a week of working with Brainfuck, I can't imagine how I wrote code using variables."

Embrace the future of clean, concise, and elegant programming without variables at Bots.Business! Brainfuck will change your life for the better.
πŸ‘10🀣10😱7πŸ‘Ž2πŸ€”1