mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix: remove another bunch of obsolete method calls
This commit is contained in:
@@ -42,11 +42,11 @@ public class Ban : CommonHandler
|
||||
}
|
||||
catch
|
||||
{
|
||||
await Bot.SendTextMessageAsync(Chat.Id, "Нет прав на блокировку пользователя.");
|
||||
await Bot.SendMessage(Chat.Id, "Нет прав на блокировку пользователя.");
|
||||
return;
|
||||
}
|
||||
|
||||
await Bot.SendTextMessageAsync(
|
||||
await Bot.SendMessage(
|
||||
Chat.Id,
|
||||
$"{From.ToHtml()} <code>заблокировал</code> {RepliedUser!.ToHtml()} <code>{banEndMsg}</code>",
|
||||
disableNotification: true, parseMode: ParseMode.Html);
|
||||
|
||||
Reference in New Issue
Block a user