mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Disable notifications for /top call
This commit is contained in:
@@ -8,7 +8,9 @@ using Kruzya.TelegramBot.Core.Data;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
using Kruzya.TelegramBot.Core.Service;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Telegram.Bot;
|
||||
using Telegram.Bot.Types;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
|
||||
namespace West.TelegramBot.Reputation.Handler;
|
||||
|
||||
@@ -141,7 +143,8 @@ public class Reputation : CommonHandler
|
||||
i++;
|
||||
}
|
||||
|
||||
await Bot.SendHtmlStringAsync(Chat, msg);
|
||||
await Bot.SendTextMessageAsync(Chat, msg.ToString(), ParseMode.Html,
|
||||
disableNotification: true);
|
||||
}
|
||||
|
||||
private async Task<double> GetUserReputation(User user)
|
||||
|
||||
Reference in New Issue
Block a user