weixin-ts / bot/src / BotEventMap
Interface: BotEventMap
Defined in: bot/src/types.ts:327
Event map for the WeixinBot event emitter
Properties
connected
connected: []
Defined in: bot/src/types.ts:333
Fired when polling starts successfully
disconnected
disconnected: []
Defined in: bot/src/types.ts:335
Fired when polling stops
error
error: [
Error]
Defined in: bot/src/types.ts:331
Fired when polling encounters an error (non-fatal, will retry)
message
message: [
WeixinMessage]
Defined in: bot/src/types.ts:329
Fired for each new inbound message
session:expired
session:expired: []
Defined in: bot/src/types.ts:339
Fired on session expiry after the persisted session file is deleted, if configured
session:loaded
session:loaded: [
SessionData]
Defined in: bot/src/types.ts:337
Fired when a saved session is loaded