diff --git a/telethon/client/auth.py b/telethon/client/auth.py index b0e5243e..8c91a694 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -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 '