From 6a62d1b8c4e45ad3a5ca71139ffc21dd8e3ebed6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 9 Jul 2019 23:51:43 +0200 Subject: [PATCH] Fix tiny typo: contact -> contacts --- pyrogram/client/methods/users/block_user.py | 2 +- pyrogram/client/methods/users/unblock_user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/methods/users/block_user.py b/pyrogram/client/methods/users/block_user.py index 1b4cc31a..ef3cad85 100644 --- a/pyrogram/client/methods/users/block_user.py +++ b/pyrogram/client/methods/users/block_user.py @@ -38,7 +38,7 @@ class BlockUser(BaseClient): """ return bool( self.send( - functions.contact.Block( + functions.contacts.Block( id=self.resolve_peer(user_id) ) ) diff --git a/pyrogram/client/methods/users/unblock_user.py b/pyrogram/client/methods/users/unblock_user.py index b2212762..c06533cd 100644 --- a/pyrogram/client/methods/users/unblock_user.py +++ b/pyrogram/client/methods/users/unblock_user.py @@ -38,7 +38,7 @@ class UnblockUser(BaseClient): """ return bool( self.send( - functions.contact.Unblock( + functions.contacts.Unblock( id=self.resolve_peer(user_id) ) )