mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fetch users when getting contacts
This commit is contained in:
parent
3ff3f5d9f4
commit
c99bc9118b
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue