From 52902d4d433844eb8819c14cc8c68cce1e1d6668 Mon Sep 17 00:00:00 2001 From: Elliot Manson Date: Sun, 14 Jul 2019 22:23:23 +0400 Subject: [PATCH] bug fix --- pyrogram/client/client.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 5219240b..de21cce3 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -577,20 +577,8 @@ class Client(Methods, BaseClient): password_invalid_raises = self.password is not None - def default_recovery_callback(email_pattern: str) -> str: - print("An e-mail containing the recovery code has been sent to {}".format(email_pattern)) - return input("Enter password recovery code: ") - while True: try: - r = self.send(functions.auth.RequestPasswordRecovery()) - - self.recovery_code = ( - default_recovery_callback(r.email_pattern) if self.recovery_code is None - else str(self.recovery_code(r.email_pattern)) if callable(self.recovery_code) - else str(self.recovery_code) - ) - r = self.send( functions.auth.RecoverPassword( code=self.recovery_code