Bot
This part is for bot, and you need not be family with rxjs
init#
You can easily instance a Bot and register a listener, and the event type the bot supports is bot event type
BotEventType#
All BotEventType as follows:
INITIATING#
When create instance by new operator, bot will send a request to get token for later use.
This event will be emitted when new operator execute.
INITIAL_COMPLETE#
When bot get tenant_access_token, the initial is completed. INITIAL_COMPLETE will be emitted
after get the token successfully, otherwise the BotEventType.ERROR event will be triggered.
ERROR#
This event type will be triggered when there has any error occur.
RECEIVE_MESSAGE#
This event type will be emitted if there is any message was successfully received.