mirror of
https://github.com/pyrogram/pyrogram
synced 2025-10-05 13:36:28 +00:00
Fix send AcceptTermsOfService not being awaited
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user