MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / editMessage

Method editMessage

clean/clean.ts:477–483  ·  view source on GitHub ↗
(msg: Api.Message, text: string)

Source from the content-addressed store, hash-verified

475
476 // 工具函数
477 private async editMessage(msg: Api.Message, text: string): Promise<void> {
478 try {
479 await msg.edit({ text, parseMode: "html" });
480 } catch (error) {
481 console.error("编辑消息失败:", error);
482 }
483 }
484
485 private async sendError(msg: Api.Message, errorMsg: string): Promise<void> {
486 await this.editMessage(msg, `❌ <b>错误:</b> ${htmlEscape(errorMsg)}`);

Callers 15

handleCleanMethod · 0.95
cleanDeletedPMMethod · 0.95
cleanDeletedMemberMethod · 0.95
cleanBlockedPMMethod · 0.95
unblockMemberMethod · 0.95
sendErrorMethod · 0.95
handleErrorMethod · 0.95
handleFloodWaitMethod · 0.95
updateBlockedProgressMethod · 0.95
statusCallbackFunction · 0.80
clean_memberFunction · 0.80
editProgressFunction · 0.80

Calls 2

errorMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected