mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Make custom.Message properties mutable
It is convenient to, for example, change the text before resending.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user