mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Fetch users when getting contacts
This commit is contained in:
parent
3ff3f5d9f4
commit
c99bc9118b
@ -2337,4 +2337,7 @@ class Client:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_contacts(self, _hash: int = 0):
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user