πΉ 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
I am just made small fix and it fully worked now!
You can test it:
https://codepen.io/Bots-Business/pen/jOQjdyj?editors=1000
You can test it:
https://codepen.io/Bots-Business/pen/jOQjdyj?editors=1000
π3π₯1
βοΈ New fields:
-
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
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
-
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
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
Do you want
$9/month
200,000 iterations
no broadcast
Without advertising
PM for pre-order!
Cloud.X?$9/month
200,000 iterations
no broadcast
Without advertising
PM for pre-order!
π27π10
Forwarded from OxaPay Crypto Payment Gateway
π 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
π OxaPay.com
π’ @OxaPay
π29π₯7
We need to remove searching and ordering for List.
Why?
- it is used by less than 1% of users and no one knows about it
- it's very good for performance for everyone
Why?
- it is used by less than 1% of users and no one knows about it
- it's very good for performance for everyone
π3
Forwarded from Bots.Business
How to make own BJS Api gateway?
Web App version
Command /getUrl
https://help.bots.business/bjs/web-app#passing-data-to-bjs
command cloneBot:
Web App version
Command /getUrl
// just run this command and you will have url for your own APISo you will have url and you can pass any data via it from your external App:
var url = WebApp.getUrl({ command: "cloneBot" });
Bot.sendMessage(url)
https://help.bots.business/bjs/web-app#passing-data-to-bjs
command cloneBot:
BBAdmin.installBot(
{
// bot will be cloned to this email
email: options.email, // you pass email via url params
// see bot id in the app -> Bots -> Bot
bot_id: options.bot_id,
// you can pass bot token if you want
token: options.bot_token,
// bot can be installed as protected
// as_protected: true,
// you can pass properties to bot:
// bot_properties: [
// { name: 'test',
// value:'hello world',
// type:'string' }
// ]
}
)
WebApp.render({ content: "Bot cloned" });
Now you can use this own API from your any external apphelp.bots.business
Web App | Bots.Business - Help
With web app you can render web content