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

Function buildImgCaption

pmcaptcha/pmcaptcha.ts:961–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 });

Callers 1

sendCaptchaFunction · 0.85

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected