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