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

Function cleanupGroupBuffers

shift/shift.ts:588–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586function getGroupKey(message: any): string | null {
587 const gid = (message as any).groupedId;
588 const sid = getChatIdFromMessage(message);
589 if (!gid || !sid) return null;
590 const gidStr =
591 typeof gid?.toString === "function" ? gid.toString() : String(gid);
592 return `${sid}:${gidStr}`;
593}
594
595async function forwardGroupMessages(
596 client: TelegramClient,
597 fromChatId: number,
598 toChatId: number,
599 messageIds: number[],
600 options?: { silent?: boolean; replyTo?: number }

Callers 1

cleanupMethod · 0.85

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected