(target: TargetChat)
| 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 |
no test coverage detected