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

Function htmlEscape

yvlu/yvlu.ts:274–281  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

272async function ensureFullEntity(client: any, entity: any): Promise<any> {
273 if (!entity || !client) return entity;
274 // If entity has an id but no emojiStatus at all, it may be incomplete
275 if (entity.id && entity.emojiStatus === undefined && entity.emoji_status === undefined) {
276 try {
277 const full = await withTimeout(client.getEntity(entity), QUOTE_RPC_TIMEOUT_MS, "ensureFullEntity");
278 return full || entity;
279 } catch { return entity; }
280 }
281 return entity;
282}
283
284async function senderEntity(msg: any): Promise<any | undefined> {

Callers 5

codeTagFunction · 0.70
YvluPluginClass · 0.70
handleConfigCommandMethod · 0.70
createStickerSetMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected