fix: remove another bunch of obsolete method calls

This commit is contained in:
Andriy
2025-02-09 17:50:46 +02:00
parent c3a553f68d
commit 50774e1af6
17 changed files with 40 additions and 40 deletions
@@ -43,7 +43,7 @@ public class StickerSet
var sticker = message?.ReplyToMessage?.Sticker;
if (sticker is { SetName: { } })
{
result.Set = bot.GetStickerSetAsync(sticker.SetName).GetAwaiter().GetResult();
result.Set = bot.GetStickerSet(sticker.SetName).GetAwaiter().GetResult();
result.IsValid = true;
return true;
}
@@ -56,7 +56,7 @@ public class StickerSet
{
try
{
result.Set = bot.GetStickerSetAsync(setName.First())
result.Set = bot.GetStickerSet(setName.First())
.GetAwaiter()
.GetResult();
result.IsValid = true;