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 text = `🔒 <b>人机验证</b>\n\n请回答以下问题:\n\n<b>${htmlEscape(qa.question)}</b>${footer}`;
960 const m = await client.sendMessage(peerTarget(userId), { message: text, parseMode: "html" });
961 msgIds.push(m.id);
962 } else {
963 answer = kw;
964 question = kw;
965 isQA = false;
966 const text = custom
967 ? htmlEscape(custom).replace("{keyword}", htmlEscape(kw))
968 : `🔒 <b>人机验证</b>\n\n请回复以下关键词以证明你不是机器人:\n\n${codeTag(kw)}${footer}`;
969 const m = await client.sendMessage(peerTarget(userId), { message: text, parseMode: "html" });
970 msgIds.push(m.id);

Callers 1

sendCaptchaFunction · 0.85

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected