2
0
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:
Dan
2018-06-25 00:46:06 +02:00
3 changed files with 82 additions and 9 deletions

View File

@@ -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

View File

@@ -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``):