Fetch users when getting contacts

This commit is contained in:
Dan 2018-02-20 15:05:17 +01:00
parent 3ff3f5d9f4
commit c99bc9118b

View File

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