Fix access to properties in User and Chat

This commit is contained in:
Lonami Exo 2022-02-24 11:46:32 +01:00
parent a76c9e9f4c
commit 4c94407b79
2 changed files with 4 additions and 4 deletions

View File

@ -20,10 +20,10 @@ if TYPE_CHECKING:
def _fwd(field, doc):
def fget(self):
return getattr(self._message, field, None)
return getattr(self._chat, field, None)
def fset(self, value):
object.__setattr__(self._message, field, value)
object.__setattr__(self._chat, field, value)
return property(fget, fset, None, doc)

View File

@ -20,10 +20,10 @@ if TYPE_CHECKING:
def _fwd(field, doc):
def fget(self):
return getattr(self._message, field, None)
return getattr(self._user, field, None)
def fset(self, value):
object.__setattr__(self._message, field, value)
object.__setattr__(self._user, field, value)
return property(fget, fset, None, doc)