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
Webhook Lib update:
- all request options now like Headers, IP, Params and etc
- result from BJS in { answer: YOUR_DATA }
- status can be 200 or 503
See help:
https://help.bots.business/libs/webhooks-lib
- all request options now like Headers, IP, Params and etc
- result from BJS in { answer: YOUR_DATA }
- status can be 200 or 503
See help:
https://help.bots.business/libs/webhooks-lib
👍3🔥1