mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Rename get_dialogs
This commit is contained in:
parent
8bdccda6ee
commit
52f1f390ca
1 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ class Client(Methods, BaseClient):
|
||||||
self.peers_by_username = {}
|
self.peers_by_username = {}
|
||||||
self.peers_by_phone = {}
|
self.peers_by_phone = {}
|
||||||
|
|
||||||
self.get_dialogs()
|
self.get_initial_dialogs()
|
||||||
self.get_contacts()
|
self.get_contacts()
|
||||||
else:
|
else:
|
||||||
self.send(functions.messages.GetPinnedDialogs())
|
self.send(functions.messages.GetPinnedDialogs())
|
||||||
|
|
@ -998,7 +998,7 @@ class Client(Methods, BaseClient):
|
||||||
log.info("Total peers: {}".format(len(self.peers_by_id)))
|
log.info("Total peers: {}".format(len(self.peers_by_id)))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def get_dialogs(self):
|
def get_initial_dialogs(self):
|
||||||
self.send(functions.messages.GetPinnedDialogs())
|
self.send(functions.messages.GetPinnedDialogs())
|
||||||
|
|
||||||
dialogs = self.get_dialogs_chunk(0)
|
dialogs = self.get_dialogs_chunk(0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue