(config: FeishuConfig, options: FeishuEventHandlerOptions = {})
| 32 | private saveInterval: NodeJS.Timeout | null = null; |
| 33 | |
| 34 | constructor(config: FeishuConfig, options: FeishuEventHandlerOptions = {}) { |
| 35 | this.config = config; |
| 36 | this.client = new FeishuClient(config); |
| 37 | this.nativeClient = this.client.getNativeClient(); |
| 38 | this.options = options; |
| 39 | this.eventDispatcher = new Lark.EventDispatcher({ |
| 40 | encryptKey: config.encryptKey, |
| 41 | verificationToken: config.verificationToken, |
| 42 | }); |
| 43 | |
| 44 | // 加载已处理的消息 ID |
| 45 | this.loadProcessedIds(); |
| 46 | |
| 47 | this.setupEventHandlers(); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * 从文件加载已处理的消息 ID |
nothing calls this directly
no test coverage detected