Disable notifications for /top call

This commit is contained in:
2022-02-16 07:37:03 +03:00
parent 67d0e81953
commit a4d1dea47d
+4 -1
View File
@@ -8,7 +8,9 @@ using Kruzya.TelegramBot.Core.Data;
using Kruzya.TelegramBot.Core.Extensions; using Kruzya.TelegramBot.Core.Extensions;
using Kruzya.TelegramBot.Core.Service; using Kruzya.TelegramBot.Core.Service;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Telegram.Bot;
using Telegram.Bot.Types; using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace West.TelegramBot.Reputation.Handler; namespace West.TelegramBot.Reputation.Handler;
@@ -141,7 +143,8 @@ public class Reputation : CommonHandler
i++; i++;
} }
await Bot.SendHtmlStringAsync(Chat, msg); await Bot.SendTextMessageAsync(Chat, msg.ToString(), ParseMode.Html,
disableNotification: true);
} }
private async Task<double> GetUserReputation(User user) private async Task<double> GetUserReputation(User user)