()
| 959 | const lines: string[] = [`🔒 人机验证\n\n请输入图片中的${desc}`]; |
| 960 | if (timeout > 0) lines.push(`⏱ 验证时间:${htmlEscape(timeout)} 秒`); |
| 961 | if (tries > 0) lines.push(`🔢 剩余次数:${htmlEscape(tries)} 次`); |
| 962 | lines.push(`⚠️ 验证失败将会:${htmlEscape(actionDesc)}`); |
| 963 | return lines.join("\n"); |
| 964 | } |
| 965 | |
| 966 | const caption = custom ? htmlEscape(custom) : buildImgCaption(); |
| 967 | const photoMsg = await client.sendMessage(userId, { |
| 968 | message: caption, |
| 969 | file: new CustomFile("captcha.png", img.buffer.length, "", img.buffer) |
| 970 | }); |
no test coverage detected