mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 00:35:10 +00:00
Fetch users when getting contacts
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user