From ea05ddc28f396528d33b9c565077d952b7142100 Mon Sep 17 00:00:00 2001 From: penn5 Date: Sun, 23 Aug 2020 19:16:23 +0100 Subject: [PATCH] Update auth.py --- telethon/client/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/auth.py b/telethon/client/auth.py index eec78ec6..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 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 '