BB Admin functions

BBAdmin.attractUser

Function
Description
BBAdmin.attractUser(options)
Attract new user.
Bot owner attract new user with email "[email protected]" to Bots.Business. Email must be valid.
  • User will be received email with password and information for start.
  • Bot owner can see new user in App -> Account -> Attracted Users List
  • Bot owner have rewards for each attracted user with paid Plan
This function work only for new users. For old users - no any attraction and no email.
1
BBAdmin.attractUser(
2
{ email: '[email protected]'}
3
)
Copied!
Also it is possible pass owner_id (If not defined - used bot owner ID)
1
BBAdmin.attractUser(
2
{
3
4
owner_id: user_id //
5
}
6
)
Copied!

BBAdmin.installBot

Function
Description
BBAdmin.installBot(options)
Install bot for other user
You can install copy of yours exist bot for user with email.
If user is new user - they will be attracted as yours referral.
You can install only your bot for other users
Bot can be installed as protected bot.
You can pass bot properties for new bot.
1
BBAdmin.installBot(
2
{
3
// bot will be cloned to this email
4
5
// see bot id in the app -> Bots -> Bot
6
bot_id: 15025,
7
8
// you can pass bot token if you want
9
token: BOT_TOKEN,
10
11
// bot can be installed as protected
12
// as_protected: true,
13
14
// you can pass properties to bot:
15
// bot_properties: [
16
// { name: 'test',
17
// value:'hello world',
18
// type:'string' }
19
// ]
20
}
21
)
Copied!
You can also clone your own bot with this function or use BBAdmin.cloneBot

BBAdmin.cloneBot

Function
Description
BBAdmin.cloneBot(options)
Clone own bot
You can create copy of yours exist bot
Bot can be cloned as protected bot.
You can pass bot properties for new bot.
1
BBAdmin.cloneBot(
2
{
3
// see bot id in the app -> Bots -> Bot
4
bot_id: 15025,
5
6
// you can pass bot token if you want
7
token: BOT_TOKEN,
8
9
// bot can be installed as protected
10
// as_protected: true,
11
// you can pass properties to bot:
12
// bot_properties: [
13
// { name: 'test',
14
// value:'hello world',
15
// type:'string' }
16
// ]
17
}
18
)
Copied!
Last modified 1mo ago