mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Make custom.Message properties mutable
It is convenient to, for example, change the text before resending.
This commit is contained in:
parent
c220d50ed8
commit
bd7675581d
|
@ -22,7 +22,7 @@ def _fwd(field, doc):
|
|||
return getattr(self._message, field, None)
|
||||
|
||||
def fset(self, value):
|
||||
setattr(self._message, field, value)
|
||||
object.__setattr__(self._message, field, value)
|
||||
|
||||
return property(fget, fset, None, doc)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user