mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Fix send AcceptTermsOfService not being awaited
This commit is contained in:
parent
af5c5d20cf
commit
ed562edb9f
@ -585,7 +585,7 @@ class Client(Methods, BaseClient):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if terms_of_service:
|
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.password = None
|
||||||
self.user_id = r.user.id
|
self.user_id = r.user.id
|
||||||
|
Loading…
Reference in New Issue
Block a user