mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add extra GetDialogs step
This commit is contained in:
parent
b5304ca23a
commit
2f2a381686
1 changed files with 9 additions and 0 deletions
|
|
@ -914,6 +914,15 @@ class Client:
|
||||||
offset_date = parse_dialogs(dialogs)
|
offset_date = parse_dialogs(dialogs)
|
||||||
log.info("Entities count: {}".format(len(self.peers_by_id)))
|
log.info("Entities count: {}".format(len(self.peers_by_id)))
|
||||||
|
|
||||||
|
self.send(
|
||||||
|
functions.messages.GetDialogs(
|
||||||
|
0, 0, types.InputPeerEmpty(),
|
||||||
|
self.DIALOGS_AT_ONCE, True
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
log.info("Entities count: {}".format(len(self.peers_by_id)))
|
||||||
|
|
||||||
def resolve_peer(self, peer_id: int or str):
|
def resolve_peer(self, peer_id: int or str):
|
||||||
"""Use this method to get the *InputPeer* of a known *peer_id*.
|
"""Use this method to get the *InputPeer* of a known *peer_id*.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue