ResourcesLib - it is Core Lib now.
You can use it via:
- It is about speed.
- Installation is not needed
You can use it via:
Libs.ResourcesLib.xxxor new way (shorter!):
ResLib.xxxWhy we need core Libs?
- It is about speed.
- Installation is not needed
π7π€3π1
π12π4π3
Bots.Business
@DemoResBot - migrated to new database now. We still continue work. Some bugs are possible
We just made some tune work for new database.
@DemoResBot - on old database now and will be moved again to new database something later
@DemoResBot - on old database now and will be moved again to new database something later
π₯134π129π125π€¬122β€115π114π€110π±108π₯°105π98
Speed Up: PHASE 1
https://telegra.ph/Speed-Up-PHASE-1-08-05
All Speed phases:
https://trello.com/b/aSsZiFlW/bb-speed-development
https://telegra.ph/Speed-Up-PHASE-1-08-05
All Speed phases:
https://trello.com/b/aSsZiFlW/bb-speed-development
Telegraph
Speed Up: PHASE 1
In an exciting development, the bot platform "BB" has rolled out its long-awaited speed upgrade, marking the successful completion of Phase 1 of their plan. This upgrade is enhance the platform's performance and provide users with a seamless and fast experience.β¦
π₯3β€1π1
π10π2π2β€1π₯1
Sometimes this code have timeouts:
BB try load all props by one request to database - it is more quickly.
If you use //!noPrePropsLoading - props loading separately. As a rule - it is slowly but sometimes it can be without timeout.
#noPreLoading
var res1 = Libs.ResourcesLib.userRes("cloud1")
var res2 = Libs.ResourcesLib.userRes("cloud2")
var res3 = Libs.ResourcesLib.userRes("cloud3")
..
var res10 = Libs.ResourcesLib.userRes("cloud10")
You can try to use //!noPrePropsLoading flag://!noPrePropsLoadingit is another props loading method.
var res1 = Libs.ResourcesLib.userRes("cloud1")
var res2 = Libs.ResourcesLib.userRes("cloud2")
var res3 = Libs.ResourcesLib.userRes("cloud3")
..
var res10 = Libs.ResourcesLib.userRes("cloud10")
BB try load all props by one request to database - it is more quickly.
If you use //!noPrePropsLoading - props loading separately. As a rule - it is slowly but sometimes it can be without timeout.
#noPreLoading
π2π₯°2
πΉ Update:
Props reading limit is increased from 100 to 200 props
Props reading limit is increased from 100 to 200 props
π₯3π2
π§Ά NEW:
New param
Now it is possible to run any bot command for other user by his telegramid:
New param
user_telegramid is added for Bot.runNow it is possible to run any bot command for other user by his telegramid:
Bot.run({ command: "otherCommand", user_telegramid: TG_ID })
BJS become more flexible. You can do anything on that command: read another user's props and etc.π7π₯°2
NEW! β‘οΈβ‘οΈβ‘οΈ
You can read and set user's prop by telegramid now:
Then:
you can read (or set) it via telegramid.
πͺπ½ It doesn't matter and it will be the same value.
Why is this needed?
Sometimes we don't have user.id:
- for user's forwarded message
- for replies
- and etc
So it is hard to access to user's prop by user.id field because only telegramid are available in such cases.
You can read and set user's prop by telegramid now:
Bot.setProperty({
name: "balance",
user_telegramid: TG_ID,
value: 10
})
read:let balance = Bot.getProperty({
name: "balance",
user_telegramid: TG_ID
})
βοΈ You can set (or read) property via bot_id.Then:
you can read (or set) it via telegramid.
πͺπ½ It doesn't matter and it will be the same value.
Why is this needed?
Sometimes we don't have user.id:
- for user's forwarded message
- for replies
- and etc
So it is hard to access to user's prop by user.id field because only telegramid are available in such cases.
π8π€3π±2β€1
Just some experiment with ChatGPT π
I want to make own BB in BB.
AI promt - done. And web page is created!
We just have error with passing API key on sub pages. But it is pretty good!
You can use it and make your own BB Web app with web app
I want to make own BB in BB.
AI promt - done. And web page is created!
We just have error with passing API key on sub pages. But it is pretty good!
You can use it and make your own BB Web app with web app
π₯3π2