Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
#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
I am just made small fix and it fully worked now!

You can test it:
https://codepen.io/Bots-Business/pen/jOQjdyj?editors=1000
πŸ‘3πŸ”₯1
✍️ New fields:
- user.just_created
- chat.just_created

πŸ•Ή What is it?
Now it is possible to track new user in easy way!
You don't need to save prop for tracking old users now. It is more pretty!

⚑️ Command /start
if(chat.just_created){
Bot.sendMessage("Hello, new user!")
// you can add bonus here and etc
}else{
// user just press /start on old chat
Bot.sendMessage("Welcome back!")
}

What about user.just_created?
For totally new user we have true for user.just_created.
User can start any BB bot before your bot - just created will be false
❀11πŸ‘3πŸ”₯2πŸ‘Ž1
Once more about just_created fields for user and chat.

There are clarifications. (Help and prev message are edited)

We have user.just_created - only for totally new BB user!
User can have any BB bot(s) before your bot. So user.just_created will be false.
"True" will be only for totally new user (Such user didn't start any BB bot before)

chat.just_created will be true for new chat.
Also chat can be just created if user start new chat after blocking

⚑️ Command /start
if(chat.just_created){
// it is new or unblocked/restored chat
Bot.sendMessage("Hello, new user!")
// you can add bonus here and etc
// also you can check user balance here or something else because user can delete chat before
if(User.getProperty("balance") > 0){
Bot.sendMessage("Ah, you old user! Welcome back!");
// bonus for returning possible here
}else{
// welcome bonus here
}
}else{
// user just press /start on old chat
Bot.sendMessage("Welcome back!")
}
πŸ‘4πŸ‘3πŸ‘Ž1
❀16πŸ₯°5πŸ‘1
Do you want Cloud.X?

$9/month
200,000 iterations
no broadcast
Without advertising

PM for pre-order!
πŸ‘Ž27πŸ‘10
Now ads are sent no more than once every 10 seconds.
πŸ‘Ž15πŸ‘4❀1🀬1
πŸš€ All you need from crypto in one library for botsBusiness users! Exciting update for #BotsBusiness users: Introducing OxaPay's latest update with Merchant invoices, static addresses, white-label addresses, and a powerful payout API without KYC. Dive into details in the docs and explore at bots.business today! πŸ’ΌπŸ’°

πŸ”— OxaPay.com
πŸ“’ @OxaPay
πŸ‘29πŸ”₯7