xiaozuoassistant 0.2.33 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,8 +98,17 @@ export class FeishuChannel extends BaseChannel {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
// 添加通用消息已读回调防止未注册导致的告警
|
|
103
|
+
eventDispatcher.register({
|
|
104
|
+
'im.message.message_read_v1': async (data) => {
|
|
105
|
+
// Silently ignore to prevent "[warn]: no im.message.message_read_v1 handle"
|
|
106
|
+
}
|
|
107
|
+
});
|
|
101
108
|
await wsClient.start({
|
|
102
109
|
eventDispatcher: eventDispatcher
|
|
110
|
+
}).catch(e => {
|
|
111
|
+
console.error(`[Feishu-${botName}] WSClient start threw an error:`, e);
|
|
103
112
|
});
|
|
104
113
|
this.bots.push({ name, client, wsClient });
|
|
105
114
|
console.log(`Feishu Bot ${name} Started (WebSocket Mode)`);
|