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

Method disableTelegraph

ai/ai.ts:4268–4276  ·  view source on GitHub ↗
(
    msg: Api.Message,
    configManager: ConfigManager,
  )

Source from the content-addressed store, hash-verified

4266
4267 private async disableTelegraph(
4268 msg: Api.Message,
4269 configManager: ConfigManager,
4270 ): Promise<void> {
4271 await configManager.updateConfig((cfg) => {
4272 cfg.telegraph.enabled = false;
4273 });
4274 await this.editMessage(msg, "✅ Telegraph 已关闭");
4275 }
4276
4277 private async setTelegraphLimit(
4278 msg: Api.Message,
4279 args: string[],

Callers 1

executeMethod · 0.95

Calls 2

editMessageMethod · 0.80
updateConfigMethod · 0.45

Tested by

no test coverage detected