Return custom User from sign_in/sign_up

This commit is contained in:
Lonami Exo
2022-02-17 11:15:11 +01:00
parent 1029c38d7e
commit 5c6fdf9a71
4 changed files with 6 additions and 3 deletions

View File

@@ -297,7 +297,7 @@ async def _update_session_state(self, user, save=True):
)
self._phone_code_hash = None
return user
return _custom.User._new(self, user)
async def _replace_session_state(self, *, save=True, **changes):