mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
give more detail when warning about incorrect phone/id
This commit is contained in:
parent
7de1c0e237
commit
57dc2e85f4
|
@ -153,13 +153,13 @@ class AuthMethods:
|
|||
warnings.warn(
|
||||
'the session already had an authorized user so it did '
|
||||
'not login to the bot account using the provided '
|
||||
'bot_token (it may not be using the user you expect)'
|
||||
f'bot_token (it is using ID {me.id})'
|
||||
)
|
||||
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 '
|
||||
'phone (it may not be using the user you expect)'
|
||||
f'phone (the account is using phone number {me.phone})'
|
||||
)
|
||||
|
||||
return self
|
||||
|
|
Loading…
Reference in New Issue
Block a user