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:
@@ -38,7 +38,7 @@ public partial class BanStickerSet
|
||||
var replyToMsgId = Message?.ReplyToMessage?.MessageId;
|
||||
if (replyToMsgId != null)
|
||||
{
|
||||
await Bot.DeleteMessageAsync(Chat.Id, (int) replyToMsgId);
|
||||
await Bot.DeleteMessage(Chat.Id, (int) replyToMsgId);
|
||||
}
|
||||
|
||||
await Reply(FormatStickerSetAction(stickerSet.Set, "заблокирован"));
|
||||
@@ -90,7 +90,7 @@ public partial class BanStickerSet
|
||||
{
|
||||
try
|
||||
{
|
||||
var stickerSet = await Bot.GetStickerSetAsync(list[i]);
|
||||
var stickerSet = await Bot.GetStickerSet(list[i]);
|
||||
htmlString.Text($"{i + 1}. ")
|
||||
.Url("https://t.me/addstickers/" + stickerSet.Name, stickerSet.Title)
|
||||
.Br();
|
||||
@@ -125,7 +125,7 @@ public partial class BanStickerSet
|
||||
"Этот набор стикеров заблокирован. Чтобы я мог его удалить, выдайте мне право на удаление сообщений.");
|
||||
}
|
||||
|
||||
await Bot.DeleteMessageAsync(Chat.Id, message.MessageId);
|
||||
await Bot.DeleteMessage(Chat.Id, message.MessageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user