Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
Forwarded from Bots.Business
How to make own BJS Api gateway?
Web App version

Command /getUrl
// just run this command and you will have url for your own API
var url = WebApp.getUrl({ command: "cloneBot" });
Bot.sendMessage(url)


So you will have url and you can pass any data via it from your external App:
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 app
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
πŸ‘3πŸ”₯1
Are you want bot creation online workshop?

Please suggest ideas for it in comments with #workshop
πŸ‘6
Oxapay lib fixed:

add hmac signature

πŸ’₯Update: need reinstall OxaPay lib in your bot
❀2πŸ”₯2
We have orange Apdex on status.bots.business.


But it is bad only from Singapore. France and Germany have good speed. Seems it is our checker toll issue not BB.
πŸ€”2
update in progress...
Need approx 30-60 min
πŸ‘6
Suddenly long update. It was quickly on test stand but real BB have bigger traffic and database.

Sorry for waiting
πŸ”₯4πŸ‘2❀1πŸ‘Ž1
Unfortunately the update had to be canceled due to excessive downtime.

We will analyze the errors and make it later. There will be separate news about service times.

Sorry πŸ˜”
🀬6πŸ€”2πŸ‘Ž1
Uptime
πŸ‘Ž7
BB don't send Active ADs to channels now.
πŸ‘16πŸ‘Ž3🀬2
Get Top Refferal List

It is not working now due performance reason.
List ordering rework is needed.

We can't support it now because we can have downtimes with this😞
🀬15πŸ‘Ž3😱2πŸ‘1
Webhook Lib: Possible issues

In the case of a large number of requests from an external web service, such a web service may be subject to ban filters.
Please provide an external IP address and we will add it to the White List.
Top priority tasks now:
It is just list without fixing priority

- πŸͺ² 1000 timeout errors with props
- πŸ’₯ List ordering + searching
- πŸͺ² MCL - fixing
- πŸͺ² Bot.runAll - fixing
- πŸͺ² Another error with Broadcasting
- πŸ’₯ Update all request - new feature
- πŸͺ² Admin Panel saving button not works

⚠️ All tasks have asap priority.
Fix in progress
πŸ‘5πŸ”₯1
Automatic props cleaning
will be run from next week

- all props (all bot's props) for bots without active chats for more than a year
- all props (user's props only) for users without active chats for more than a year

will be removed!

How to prevent this?
Bot's props:
- you can start your bot and write any message to bot in any bot chat
- or you can have more then 100 EPs in your account (this bot account)

User's props:
- write as user to bot

Why we need this?
We have more then 500 000 000 props in BB for all time. It's a really big database.
Old props not needed.
- More then 55% of users agree with this:
https://t.me/botsbus/1781

- you can easy save bot props (not user's props) - it is 100 EPs only
πŸ”₯12❀1πŸ‘1πŸ‘Ž1🀬1