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

Method handleDisable

autodelcmd/autodelcmd.ts:1072–1078  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

1070 await msg.edit({
1071 text: "🔴 <b>自动删除功能已禁用</b>\n\n命令消息将不再自动删除",
1072 parseMode: "html"
1073 });
1074 }
1075
1076 // 判断是否应该处理此消息
1077 private async shouldProcessMessage(msg: Api.Message): Promise<boolean> {
1078 // 1. 处理自己发出的消息
1079 if (msg.out) return true;
1080
1081 // 2. 检查是否是 Saved Messages

Callers 1

AutoDeletePluginClass · 0.95

Calls 2

setEnabledMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected