mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix get_participants was monkey-patching User
It no longer can do that. User has __slots__.
This commit is contained in:
@@ -167,7 +167,6 @@ class _ParticipantsIter(requestiter.RequestIter):
|
||||
continue
|
||||
|
||||
user = users[user_id]
|
||||
user.participant = participant
|
||||
self.buffer.append(user)
|
||||
|
||||
return True
|
||||
@@ -176,7 +175,6 @@ class _ParticipantsIter(requestiter.RequestIter):
|
||||
if self.limit != 0:
|
||||
user = await self.client.get_entity(entity)
|
||||
if self.filter_entity(user):
|
||||
user.participant = None
|
||||
self.buffer.append(user)
|
||||
|
||||
return True
|
||||
@@ -213,7 +211,6 @@ class _ParticipantsIter(requestiter.RequestIter):
|
||||
continue
|
||||
self.seen.add(user_id)
|
||||
user = users[user_id]
|
||||
user.participant = participant
|
||||
self.buffer.append(user)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user