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

Function requireUser

deepwiki/deepwiki.ts:128–130  ·  view source on GitHub ↗
(cond: any, msg: string)

Source from the content-addressed store, hash-verified

126}
127
128const requireUser = (cond: any, msg: string) => {
129 if (!cond) throw new UserError(msg);
130};
131
132class MessageSender {
133 static async sendOrEdit(msg: Api.Message, text: string, parseMode: "html" | "markdown" = "html"): Promise<Api.Message | undefined> {

Callers 2

setCurrentMethod · 0.70
DeepWikiPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected