(msg: Api.Message, error: any)
| 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 | } |
no test coverage detected