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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user