mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] remove mentions in /top commands
This commit is contained in:
@@ -160,7 +160,9 @@ public class Reputation : CommonHandler
|
|||||||
foreach (var rep in await _reputationService.GetChatRatingAsync(Chat))
|
foreach (var rep in await _reputationService.GetChatRatingAsync(Chat))
|
||||||
{
|
{
|
||||||
var user = await _userService.GetUser(rep.UserId, rep.ChatId);
|
var user = await _userService.GetUser(rep.UserId, rep.ChatId);
|
||||||
msg.Text($"{i}. ").UserMention(user).Text($" ({rep.Value})").Br();
|
msg.Text($"{i}. ")
|
||||||
|
.Text($"{user.FirstName} {user.LastName}".Trim().HtmlEncode())
|
||||||
|
.Text($" ({rep.Value})").Br();
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user