diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 24bf09eb..17833310 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -456,6 +456,7 @@ class Client(Methods, BaseClient): phone_registered = r.phone_registered phone_code_hash = r.phone_code_hash + terms_of_service = r.terms_of_service if self.force_sms: self.send( @@ -562,6 +563,8 @@ class Client(Methods, BaseClient): else: break + assert self.send(functions.help.AcceptTermsOfService(terms_of_service.id)) + self.password = None self.user_id = r.user.id