Add missing await keywords

This commit is contained in:
Dan 2019-01-25 10:24:04 +01:00
parent 61e9762977
commit e83012bfb8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
)