mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
🚧 Anti-spam system based on entities
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user