(
msg: Api.Message,
args: string[],
configManager: ConfigManager,
)
| 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[], |
no test coverage detected