mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix is_user_authorized always returning True
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user