mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Fix custom.Forward not using the new __slots__
This commit is contained in:
parent
e3b1dc2059
commit
6f602a203e
|
@ -26,7 +26,8 @@ class Forward(ChatGetter, SenderGetter):
|
|||
# Copy all the fields, not reference! It would cause memory cycles:
|
||||
# self.original_fwd.original_fwd.original_fwd.original_fwd
|
||||
# ...would be valid if we referenced.
|
||||
self.__dict__.update(original.__dict__)
|
||||
for slot in original.__slots__:
|
||||
setattr(self, slot, getattr(original, slot))
|
||||
self.original_fwd = original
|
||||
|
||||
sender_id = sender = input_sender = peer = chat = input_chat = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user