BB Admin functions
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.
Also it is possible pass owner_id (If not defined - used bot owner ID)
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
You can pass bot properties for new 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' }
// ]
}
)
You can also clone your own bot with this function or use BBAdmin.cloneBot
Function | Description |
BBAdmin.cloneBot(options) | Clone own bot |
You can create copy of yours exist bot
You can pass bot properties for new 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 modified 1yr ago