Fix async_generator's and missing awaits

This commit is contained in:
Lonami Exo
2018-06-10 22:00:55 +02:00
parent 8be6adeab4
commit f86f52d960
4 changed files with 22 additions and 10 deletions

View File

@@ -179,8 +179,9 @@ class ChatMethods(UserMethods):
"""
total = [0]
kwargs['_total'] = total
participants = UserList(x async for x in
self.iter_participants(*args, **kwargs))
participants = UserList()
async for x in self.iter_participants(*args, **kwargs):
participants.append(x)
participants.total = total[0]
return participants