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
BBAdmin.attractUser(
{ email: '[email protected]'}
)
Also it is possible pass owner_id (If not defined - used bot owner ID)
BBAdmin.attractUser(
{
email: '[email protected]',
owner_id: user_id //
}
)
BBAdmin.installBot
Function
Description
BBAdmin.installBot(options)
Install bot for other user
You can install copy of yours exist bot for user with email.
You can install only your bot for other users
Bot can be installed as protected bot.
BBAdmin.installBot(
{
// bot will be cloned to this email
email: '[email protected]',
// see bot id in the app -> Bots -> Bot
bot_id: 15025,
// you can pass bot token if you want
token: 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' }
// ]
}
)
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.
BBAdmin.cloneBot(
{
// see bot id in the app -> Bots -> Bot
bot_id: 15025,
// you can pass bot token if you want
token: BOT_TOKEN,
// run the bot immediately after cloning
// run_now: true,
// bot can be installed as protected
// as_protected: true,
// you can pass properties to bot:
// bot_properties: [
// { name: 'test',
// value:'hello world',
// type:'string' }
// ]
}
)
Last updated
Was this helpful?