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

Method sendOrEdit

deepwiki/deepwiki.ts:133–139  ·  view source on GitHub ↗
(msg: Api.Message, text: string, parseMode: "html" | "markdown" = "html")

Source from the content-addressed store, hash-verified

131
132class MessageSender {
133 static async sendOrEdit(msg: Api.Message, text: string, parseMode: "html" | "markdown" = "html"): Promise<Api.Message | undefined> {
134 try {
135 return await msg.edit({ text, parseMode, linkPreview: false } as any);
136 } catch {
137 return await msg.reply({ message: text, parseMode, linkPreview: false } as any);
138 }
139 }
140
141 static async sendNew(
142 msg: Api.Message,

Callers 1

DeepWikiPluginClass · 0.45

Calls 1

editMethod · 0.45

Tested by

no test coverage detected