mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-31 10:19:48 +03:00
fix UserWarning
This commit is contained in:
parent
bc799fd82c
commit
8908a72378
|
@ -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 "".join(c for c in str(phone) if c in string.digits) != me.phone:
|
||||
warnings.warn(
|
||||
'the session already had an authorized user so it did '
|
||||
'not login to the user account using the provided '
|
||||
|
|
Loading…
Reference in New Issue
Block a user