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

Method safeDelete

clean/clean.ts:512–518  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

510 await this.editMessage(msg, resultText);
511 await sleep(5000);
512 await this.safeDelete(msg);
513 }
514
515 // 工具函数
516 private async editMessage(msg: Api.Message, text: string): Promise<void> {
517 try {
518 await msg.edit({ text, parseMode: "html" });
519 } catch (error) {
520 console.error("编辑消息失败:", error);
521 }

Callers 3

unblockMemberMethod · 0.95
deleteMessageQuietFunction · 0.80
CyPluginClass · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected