Update auth.py

This commit is contained in:
penn5 2020-08-23 19:16:23 +01:00 committed by GitHub
parent 8908a72378
commit ea05ddc28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ class AuthMethods:
'not login to the bot account using the provided '
'bot_token (it may not be using the user you expect)'
)
elif phone and not callable(phone) and "".join(c for c in str(phone) if c in string.digits) != me.phone:
elif phone and not callable(phone) and utils.parse_phone(phone) != me.phone:
warnings.warn(
'the session already had an authorized user so it did '
'not login to the user account using the provided '