Accept terms of service after successfully signing in
This commit is contained in:
parent
f701ee46f6
commit
fc541221ed
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user