mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
Add missing await keywords
This commit is contained in:
parent
61e9762977
commit
e83012bfb8
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user