mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 07:15:23 +00:00
Add missing await keywords
This commit is contained in:
@@ -126,5 +126,5 @@ class BaseClient:
|
||||
async def get_chat_members(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def get_chat_members_count(self, *args, **kwargs):
|
||||
async def get_chat_members_count(self, *args, **kwargs):
|
||||
pass
|
||||
|
@@ -88,7 +88,7 @@ class IterChatMembers(BaseClient):
|
||||
|
||||
filter = (
|
||||
Filters.RECENT
|
||||
if self.get_chat_members_count(chat_id) <= 10000 and filter == Filters.ALL
|
||||
if await self.get_chat_members_count(chat_id) <= 10000 and filter == Filters.ALL
|
||||
else filter
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user