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

Function getMessageText

deepwiki/deepwiki.ts:63–67  ·  view source on GitHub ↗
(m?: Api.Message | null)

Source from the content-addressed store, hash-verified

61 text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
62
63const getMessageText = (m?: Api.Message | null): string => {
64 if (!m) return "";
65 const text = (m as any).message ?? (m as any).text ?? "";
66 return typeof text === "string" ? text : "";
67};
68
69const getRepliedMessageText = async (msg: Api.Message): Promise<string> => {
70 try {

Callers 2

getRepliedMessageTextFunction · 0.70
DeepWikiPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected