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

Method safeEditMessage

rev/rev.ts:560–571  ·  view source on GitHub ↗
(
		msg: Api.Message,
		text: string
	)

Source from the content-addressed store, hash-verified

558 }
559
560 // ==================== 工具方法 ====================
561
562 private async safeEditMessage(
563 msg: Api.Message,
564 text: string
565 ): Promise<boolean> {
566 try {
567 await msg.edit({ text, parseMode: 'html' });
568 return true;
569 } catch (error) {
570 console.warn('编辑消息失败', error);
571 return false;
572 }
573 }
574

Callers 2

cleanupMessageMethod · 0.95

Calls 2

warnMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected