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

Method getDynamicDelay

clean/clean.ts:520–530  ·  view source on GitHub ↗
(user: any, includeAll: boolean, consecutiveErrors: number)

Source from the content-addressed store, hash-verified

518 await msg.edit({ text, parseMode: "html" });
519 } catch (error) {
520 console.error("编辑消息失败:", error);
521 }
522 }
523
524 private async sendError(msg: Api.Message, errorMsg: string): Promise<void> {
525 await this.editMessage(msg, `❌ <b>错误:</b> ${htmlEscape(errorMsg)}`);
526 }
527
528 private async handleError(msg: Api.Message, error: any): Promise<void> {
529 console.error(`[CleanPlugin] 错误:`, error);
530
531 let errorMsg = `❌ <b>操作失败:</b> ${htmlEscape(error.message || "未知错误")}`;
532
533 if (error.message?.includes("FLOOD_WAIT")) {

Callers 1

cleanBlockedPMMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected