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

Method setTelegraphLimit

ai/ai.ts:4278–4291  ·  view source on GitHub ↗
(
    msg: Api.Message,
    args: string[],
    configManager: ConfigManager,
  )

Source from the content-addressed store, hash-verified

4276
4277 private async setTelegraphLimit(
4278 msg: Api.Message,
4279 args: string[],
4280 configManager: ConfigManager,
4281 ): Promise<void> {
4282 const limit = parseInt(args[2]);
4283 requireUser(!isNaN(limit) && limit > 0, "限制数量必须大于 0");
4284
4285 await configManager.updateConfig((cfg) => {
4286 cfg.telegraph.limit = limit;
4287 });
4288
4289 await this.editMessage(msg, `✅ Telegraph 限制已设置为 ${limit}`);
4290 }
4291
4292 private async deleteTelegraphItem(
4293 msg: Api.Message,
4294 args: string[],

Callers 1

executeMethod · 0.95

Calls 3

editMessageMethod · 0.80
requireUserFunction · 0.70
updateConfigMethod · 0.45

Tested by

no test coverage detected