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

Method getChatKey

deepwiki/deepwiki.ts:689–695  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

687 }
688
689 private getChatKey(msg: Api.Message): string {
690 const chatId = (msg as any).chatId;
691 const peerId = (msg as any).peerId;
692 const baseKey = toIdString(chatId) || toIdString(peerId) || "unknown";
693 const topicRootId = getTopicRootId(msg);
694 return topicRootId ? `${baseKey}:topic:${topicRootId}` : baseKey;
695 }
696
697 private helpText(): string {
698 const p = this.getMainPrefix();

Callers 1

DeepWikiPluginClass · 0.95

Calls 2

toIdStringFunction · 0.85
getTopicRootIdFunction · 0.70

Tested by

no test coverage detected