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

Function getTopicRootId

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

Source from the content-addressed store, hash-verified

164}
165
166const getTopicRootId = (msg: Api.Message): number | undefined => {
167 const typedMsg = msg as Api.Message & {
168 replyTo?: { replyToTopId?: number; replyToMsgId?: number };
169 replyToMsgId?: number;
170 };
171 return typedMsg.replyTo?.replyToTopId ?? typedMsg.replyTo?.replyToMsgId ?? typedMsg.replyToMsgId;
172};
173
174class DeepWikiStore {
175 private dbMain: any;

Callers 2

sendNewMethod · 0.70
getChatKeyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected