mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix get_participants was monkey-patching User
It no longer can do that. User has __slots__.
This commit is contained in:
@@ -731,10 +731,7 @@ class TelegramClient:
|
||||
* ``'contact'``
|
||||
|
||||
Yields
|
||||
The :tl:`User` objects returned by :tl:`GetParticipants`
|
||||
with an additional ``.participant`` attribute which is the
|
||||
matched :tl:`ChannelParticipant` type for channels/megagroups
|
||||
or :tl:`ChatParticipants` for normal chats.
|
||||
The :tl:`User` objects returned by :tl:`GetParticipants`.
|
||||
|
||||
Example
|
||||
.. code-block:: python
|
||||
|
Reference in New Issue
Block a user