Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
Sometimes we still had errors with App login - FIXED
πŸ‘Ž6πŸ‘3
RUN after - FIXED
πŸ‘Ž4πŸ‘3πŸ‘1
ResourcesLib - it is Core Lib now.

You can use it via:
Libs.ResourcesLib.xxx  

or new way (shorter!):
ResLib.xxx

Why we need core Libs?
- It is about speed.
- Installation is not needed
πŸ‘7πŸ€”3πŸ‘Ž1
@DemoResBot - migrated to new database now.


We still continue work. Some bugs are possible
πŸ‘Ž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
πŸ”₯134πŸ‘Ž129πŸ‘125🀬122❀115πŸŽ‰114πŸ€”110😱108πŸ₯°105πŸ‘98
We just made one of speed upgrading
πŸ”₯6😱3
50% of traffic is now executed no more than 0.8 seconds! πŸŽ‰

Before upgrade it was 1.8 - 2.2 sec 😱

It is more then +100% speed! πŸŽ‰πŸŽ‰πŸŽ‰
πŸ”₯7πŸ€”3
95% of traffic is now executed no more than 2.1 seconds! πŸŽ‰

Before upgrade it was 8 secs 😱

It is more then +400% speed! πŸŽ‰πŸŽ‰πŸŽ‰


Only 5% of traffic take more then 2 secs now!
πŸ‘7πŸ‘Ž2πŸ”₯2
6 hours stat.
9:20 am - upgrade
❀4πŸ‘Ž2πŸ”₯1
#WebhookLib new:
#Webhook link with redirect_to param - FIXED
❀6🀬4πŸ‘1
πŸ‘Ž10πŸ‘2πŸ’Š2❀1πŸ”₯1
Sometimes this code have timeouts:

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:
//!noPrePropsLoading
var res1 = Libs.ResourcesLib.userRes("cloud1")
var res2 = Libs.ResourcesLib.userRes("cloud2")
var res3 = Libs.ResourcesLib.userRes("cloud3")
..
var res10 = Libs.ResourcesLib.userRes("cloud10")

it is another props loading method.
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
πŸ”₯3πŸ‘2
🧢 NEW:

New param user_telegramid is added for Bot.run

Now 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:

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
πŸ‘4πŸ‘Ž4❀1πŸ₯°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
πŸ”₯3πŸ‘2