🚧 Anti-spam system based on entities

This commit is contained in:
2020-03-03 14:11:51 +04:00
parent 1441c345b2
commit 8f8898e901
9 changed files with 148 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ namespace Kruzya.TelegramBot.Core.Extensions
public static string ToHtml(this User user)
{
var text = new StringBuilder();
text.Append("<a href=\"tg://user?id={member.Id}\">");
text.Append($"<a href=\"tg://user?id={user.Id}\">");
if (!string.IsNullOrWhiteSpace(user.Username))
text.Append(user.Username);
else