MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / collectDialogs

Function collectDialogs

annualreport/annualreport.ts:20–32  ·  view source on GitHub ↗
(params: Record<string, any>)

Source from the content-addressed store, hash-verified

18 const dialogs = await client.getDialogs(params);
19 for (const dialog of dialogs || []) {
20 const key = `${dialog.id}`;
21 if (!dialogMap.has(key)) {
22 dialogMap.set(key, dialog);
23 }
24 }
25 } catch (error) {
26 console.error("[AnnualReport] 获取对话列表失败:", error);
27 }
28 };
29
30 await collectDialogs({});
31 await collectDialogs({ folderId: 1 });
32
33 return Array.from(dialogMap.values());
34}
35

Callers 1

getAllDialogsFunction · 0.70

Calls 2

errorMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected