| 907 | const failedReportPath = await generateFailedReport(result.failedUsers, chatTitle, numericChatId); |
| 908 | await client.sendMessage("me", { |
| 909 | message: `⚠️ <b>清理失败用户报告</b>\n\n` + |
| 910 | `🏷️ 群组: <b>${htmlEscape(chatTitle)}</b>\n` + |
| 911 | `❌ 失败数量: <code>${result.failedUsers.length}</code> 人\n` + |
| 912 | `📁 报告文件: <code>${path.basename(failedReportPath)}</code>\n\n` + |
| 913 | `📊 详细信息请查看 CSV 文件`, |
| 914 | parseMode: "html", |
| 915 | file: failedReportPath |
| 916 | }); |
| 917 | console.log(`失败用户报告已发送到收藏夹: ${failedReportPath}`); |
| 918 | } catch (error) { |
| 919 | console.error("生成或发送失败报告失败:", error); |
| 920 | } |
| 921 | } |
| 922 | }; |
| 923 |
nothing calls this directly
no test coverage detected