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

Function getTopicRootId

ai/ai.ts:1152–1158  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

1150
1151const getTopicRootId = (msg: Api.Message): number | undefined => {
1152 const typedMsg = msg as Api.Message & {
1153 replyTo?: { replyToTopId?: number; replyToMsgId?: number };
1154 replyToMsgId?: number;
1155 };
1156 return typedMsg.replyTo?.replyToTopId ?? typedMsg.replyTo?.replyToMsgId ?? typedMsg.replyToMsgId;
1157};
1158
1159class MessageSender {
1160 static async sendOrEdit(
1161 msg: Api.Message,

Callers 2

sendNewMethod · 0.70
sendMediaMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected