Bot
This part is for bot, and you need not be family with rxjs
#
initYou can easily instance a Bot and register a listener, and the event type the bot supports is bot event type
#
BotEventTypeAll BotEventType as follows:
#
INITIATINGWhen 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_COMPLETEWhen 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.
#
ERRORThis event type will be triggered when there has any error occur.
#
RECEIVE_MESSAGEThis event type will be emitted if there is any message was successfully received.