From 88632ae265329915830527451883ba1e0b698148 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 28 Jun 2019 16:29:16 +0200 Subject: [PATCH 1/2] Add block_user and unblock_user to docs --- docs/source/api/methods.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/api/methods.rst b/docs/source/api/methods.rst index 0cd7700f..9b2fc6c4 100644 --- a/docs/source/api/methods.rst +++ b/docs/source/api/methods.rst @@ -124,6 +124,8 @@ Users - :meth:`~Client.delete_profile_photos` - :meth:`~Client.update_username` - :meth:`~Client.get_user_dc` + - :meth:`~Client.block_user` + - :meth:`~Client.unblock_user` Contacts ^^^^^^^^ @@ -264,6 +266,8 @@ Details .. automethod:: Client.delete_profile_photos() .. automethod:: Client.update_username() .. automethod:: Client.get_user_dc() +.. automethod:: Client.block_user() +.. automethod:: Client.unblock_user() .. Contacts .. automethod:: Client.add_contacts() From 46bf3824800a5f372d87e63768873a7ce7058c39 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 28 Jun 2019 16:31:32 +0200 Subject: [PATCH 2/2] Fix self.parser not calling .parse for send_document --- pyrogram/client/methods/messages/send_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/send_document.py b/pyrogram/client/methods/messages/send_document.py index 06132688..e496b604 100644 --- a/pyrogram/client/methods/messages/send_document.py +++ b/pyrogram/client/methods/messages/send_document.py @@ -146,7 +146,7 @@ class SendDocument(BaseClient): reply_to_msg_id=reply_to_message_id, random_id=self.rnd_id(), reply_markup=reply_markup.write() if reply_markup else None, - **self.parser(caption, parse_mode) + **self.parser.parse(caption, parse_mode) ) ) except FilePartMissing as e: