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

Function buildTargetDisplay

admin_board/admin_board.ts:240–244  ·  view source on GitHub ↗
(target: TargetChat)

Source from the content-addressed store, hash-verified

238 const usernameText = user.username || "";
239
240 if (displayName && displayName !== userId && displayName !== usernameText) {
241 parts.push(htmlEscape(displayName));
242 }
243 if (user.username) {
244 parts.push(`<code>${htmlEscape(user.username)}</code>`);
245 }
246 parts.push(`<a href="tg://user?id=${userId}">${userId}</a>`);
247

Callers 5

buildSortTextFunction · 0.85
buildTailTextFunction · 0.85
handleSeatActionFunction · 0.85
handleClearCacheActionFunction · 0.85
handleTrimActionFunction · 0.85

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected