Fix send AcceptTermsOfService not being awaited

This commit is contained in:
Dan 2018-07-02 14:11:02 +02:00
parent af5c5d20cf
commit ed562edb9f

View File

@ -585,7 +585,7 @@ class Client(Methods, BaseClient):
break
if terms_of_service:
assert self.send(functions.help.AcceptTermsOfService(terms_of_service.id))
assert await self.send(functions.help.AcceptTermsOfService(terms_of_service.id))
self.password = None
self.user_id = r.user.id