From 52f1f390ca7721a8676b0c89b4fc0c49c7de85d9 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 4 Jul 2018 20:59:21 +0200 Subject: [PATCH] Rename get_dialogs --- pyrogram/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index a0f51d84..d7768c86 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -231,7 +231,7 @@ class Client(Methods, BaseClient): self.peers_by_username = {} self.peers_by_phone = {} - self.get_dialogs() + self.get_initial_dialogs() self.get_contacts() else: self.send(functions.messages.GetPinnedDialogs()) @@ -998,7 +998,7 @@ class Client(Methods, BaseClient): log.info("Total peers: {}".format(len(self.peers_by_id))) return r - def get_dialogs(self): + def get_initial_dialogs(self): self.send(functions.messages.GetPinnedDialogs()) dialogs = self.get_dialogs_chunk(0)