Fix warning when using formatted phones in start (#1532)

This commit is contained in:
penn5 2020-08-24 09:53:29 +01:00 committed by GitHub
parent bde38fb748
commit 1a9accbe5d
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 not callable(phone) and phone != 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 '