Fix is_user_authorized always returning True

This commit is contained in:
Lonami Exo
2018-06-21 09:32:09 +02:00
parent 8d5c052fce
commit cfa5cd0db2
2 changed files with 5 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class UserMethods(TelegramBaseClient):
"""
Returns ``True`` if the user is authorized.
"""
if self._self_input_peer is not None or self._state is not None:
if self._self_input_peer is not None or self._state.pts != -1:
return True
try: