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

Method handleEnable

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

Source from the content-addressed store, hash-verified

1062 await msg.edit({
1063 text: "🟢 <b>自动删除功能已启用</b>\n\n符合规则的命令消息将自动延迟删除",
1064 parseMode: "html"
1065 });
1066 }
1067
1068 private async handleDisable(msg: Api.Message) {
1069 await serviceInstance!.setEnabled(false);
1070 await msg.edit({
1071 text: "🔴 <b>自动删除功能已禁用</b>\n\n命令消息将不再自动删除",
1072 parseMode: "html"
1073 });

Callers 1

AutoDeletePluginClass · 0.95

Calls 2

setEnabledMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected