Revert "fix possible bans from Pavel Durov"

This reverts commit 1460cb0a75.
This commit is contained in:
2024-05-28 22:30:28 +03:00
parent 1460cb0a75
commit 77d89f011b
3 changed files with 6 additions and 15 deletions
+1 -7
View File
@@ -1,17 +1,12 @@
using System;
using System.Text;
using System.Text;
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.Core.Extensions;
public static class UserExtension
{
[Obsolete("Insecure method, currently replaced to dummy text 'Chat Member'")]
public static string ToHtml(this User user, bool byUsername = false)
{
return "Пользователь";
/**
var text = new StringBuilder();
text.Append($"<a href=\"tg://user?id={user.Id}\">");
@@ -24,7 +19,6 @@ public static class UserExtension
text.Append($"{user.FirstName} {user.LastName}".Trim().HtmlEncode());
}
return text.Append("</a>").ToString();
*/
}
public static string ToLog(this User user)