mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 12:10:21 +03:00
Remove unnecessary check for password_required
This commit is contained in:
parent
df31a03788
commit
b52384fce8
|
@ -49,9 +49,8 @@ class NeedsMore(TelegramClient):
|
||||||
try:
|
try:
|
||||||
code_ok = self.sign_in(user_phone, code)
|
code_ok = self.sign_in(user_phone, code)
|
||||||
except SessionPasswordNeededError:
|
except SessionPasswordNeededError:
|
||||||
if e.password_required:
|
pw = getpass('Two step verification enabled. Please enter your password: ')
|
||||||
pw = getpass('Two step verification enabled. Please enter your password: ')
|
self.sign_in(password=pw)
|
||||||
self.sign_in(password=pw)
|
|
||||||
print('INFO: Client initialized succesfully!')
|
print('INFO: Client initialized succesfully!')
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user