From c99bc9118badcf00559f12c0cdf588ef7fc3e8b0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 20 Feb 2018 15:05:17 +0100 Subject: [PATCH] Fetch users when getting contacts --- pyrogram/client/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 472af427..7611abcd 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2337,4 +2337,7 @@ class Client: ) def get_contacts(self, _hash: int = 0): - return self.send(functions.contacts.GetContacts(_hash)) + contacts = self.send(functions.contacts.GetContacts(_hash)) + self.fetch_peers(contacts.users) + + return contacts