Class: BotMaster

bot-master~BotMaster(botAPI, BotServant, identify, optsopt) → {BotMaster}

new BotMaster(botAPI, BotServant, identify, optsopt) → {BotMaster}

Create BotServant per identifier.

Parameters:
Name Type Attributes Description
botAPI BotAPI
BotServant BotServant

Servant template.

identify function

Return identifier from Update.

opts Object <optional>

Optional arguments.

Properties
Name Type Attributes Description
botLogger BotLogger <optional>

Pass a custom BotLogger.

pollingInterval Number <optional>

Polling interval.

skippingUpdates Boolean <optional>

Whether to skip initial Updates.

Source:
Returns:
Type
BotMaster
Example
new BotAPI(botAPI, BotServant, identify)

Methods

(async) loop(optsopt)

Parameters:
Name Type Attributes Description
opts Object <optional>
Properties
Name Type Attributes Description
startCallback function <optional>
stopCallback function <optional>
Source: