Bots.Business - Help
  • Welcome
  • Getting started
  • Create bot from Google Table
  • App
    • Reset or Update Your Password
  • Commands
    • Answer
    • Aliases
    • Keyboard
    • Groups
    • Wait for answer
    • Auto Retry (AR)
  • Coding: BJS
    • Variables
    • Bot functions
    • Message broadcasting and editing
    • User functions
    • Properties
    • Always running commands
    • Error command: "!"
    • Lists
      • Migration from properties to list
    • Api functions
    • BB Admin functions
    • Admin Panel
    • Send HTTP request
    • Web App
    • Caching
    • Inline Bot
    • BJS Security
    • Good coding practices
    • Top errors
  • Git
    • Import bot from Git repository
    • Export bot to Git repository
    • Repository structure
    • File: bot.json
    • Automatic importing on Git push
  • Iterations. How to reduce theys?
  • Limitations
  • Cloud
  • Reports
  • Deep Linking - pass any params on Bot starting
  • How to link chat account with BB account?
  • BB Inspection
  • Protected bot
  • VS Code
  • How to...
  • Smart Bot
    • Overview
    • Lang File
    • SmartBot
    • SmartTasker
    • Amount Dialog
  • Libs
    • What it is - Libs?
    • Libs development
    • RefferalLib
    • ResourcesLib
    • Random
    • MembershipChecker (MCL)
    • Cooldown Lib
    • CurrencyConverter
    • Lang
    • TopBoardLib
    • QiwiPayments
    • Coinbase (CB)
    • CoinPayments (CP)
    • OxaPay
    • CryptoJS
    • CurrencyQuote
    • GoogleApp
    • GoogleTableSync
    • Guard
    • Webhooks lib
    • DateTimeFormat Lib
  • Store
    • BB Point Bot
    • Welcome bot
    • Help bot
    • SRB Demo Keyboard Tools
Powered by GitBook
On this page
  • BBAdmin.attractUser
  • BBAdmin.installBot
  • BBAdmin.cloneBot

Was this helpful?

  1. Coding: BJS

BB Admin functions

BBAdmin.attractUser

Function

Description

BBAdmin.attractUser(options)

Attract new user.

Bot owner attract new user with email "test@example.com" 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.

BBAdmin.attractUser(
  { email: 'test@example.com'}
)

Also it is possible pass owner_id (If not defined - used bot owner ID)

BBAdmin.attractUser(
  { 
    email: 'test@example.com',
    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.

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: 'test@example.com',
    // 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

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' }
    // ]
  }
)

PreviousApi functionsNextAdmin Panel

Last updated 3 years ago

Was this helpful?

Bot can be installed as bot.

Bot can be cloned as bot.

protected
protected