mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 08:45:13 +00:00
Merge branch 'develop' into asyncio
This commit is contained in:
@@ -471,6 +471,10 @@ class Client(Methods, BaseClient):
|
||||
|
||||
phone_registered = r.phone_registered
|
||||
phone_code_hash = r.phone_code_hash
|
||||
terms_of_service = r.terms_of_service
|
||||
|
||||
if terms_of_service:
|
||||
print("\n" + terms_of_service.text + "\n")
|
||||
|
||||
if self.force_sms:
|
||||
await self.send(
|
||||
@@ -577,6 +581,9 @@ class Client(Methods, BaseClient):
|
||||
else:
|
||||
break
|
||||
|
||||
if terms_of_service:
|
||||
assert self.send(functions.help.AcceptTermsOfService(terms_of_service.id))
|
||||
|
||||
self.password = None
|
||||
self.user_id = r.user.id
|
||||
|
||||
|
@@ -332,7 +332,7 @@ class Message(Object):
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
message.reply_text("hello", quote=True)
|
||||
message.reply("hello", quote=True)
|
||||
|
||||
Args:
|
||||
text (``str``):
|
||||
|
Reference in New Issue
Block a user