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:
@@ -14,9 +14,9 @@ public partial class BanStickerSet
|
||||
{
|
||||
private async Task<bool> CanBotDeleteMessages()
|
||||
{
|
||||
return await Bot.GetChatMemberAsync(
|
||||
return await Bot.GetChatMember(
|
||||
Chat.Id,
|
||||
(await Bot.GetMeAsync()).Id
|
||||
(await Bot.GetMe()).Id
|
||||
) is ChatMemberAdministrator {CanDeleteMessages: true};
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public partial class BanStickerSet
|
||||
|
||||
private async Task<bool> CanUseCommands()
|
||||
{
|
||||
return await Bot.GetChatMemberAsync(Chat.Id, From.Id) is ChatMemberAdministrator {CanDeleteMessages: true}
|
||||
return await Bot.GetChatMember(Chat.Id, From.Id) is ChatMemberAdministrator {CanDeleteMessages: true}
|
||||
or ChatMemberOwner;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user