MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / handleFloodWait

Method handleFloodWait

clean/clean.ts:506–510  ·  view source on GitHub ↗
(msg: Api.Message, error: any)

Source from the content-addressed store, hash-verified

504 }
505
506 await this.editMessage(msg, errorMsg);
507 }
508
509 private async handleFloodWait(msg: Api.Message, error: any): Promise<void> {
510 const waitTime = parseInt(error.message.match(/\d+/)?.[0] || "60");
511 await this.editMessage(msg, `⏳ 需要等待 ${waitTime} 秒后继续`);
512 await sleep((waitTime + 1) * 1000);
513 }

Callers 3

cleanDeletedPMMethod · 0.95
cleanDeletedMemberMethod · 0.95
cleanBlockedPMMethod · 0.95

Calls 2

editMessageMethod · 0.95
sleepFunction · 0.70

Tested by

no test coverage detected