From 8bdccda6eed7ada1f3ef83c78606dad563998fbe Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 4 Jul 2018 14:03:45 +0200 Subject: [PATCH] Fix GetDialog call --- pyrogram/client/client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index e4fb0cc6..a0f51d84 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -983,8 +983,12 @@ class Client(Methods, BaseClient): try: r = self.send( functions.messages.GetDialogs( - offset_date, 0, types.InputPeerEmpty(), - self.DIALOGS_AT_ONCE, True + offset_date=offset_date, + offset_id=0, + offset_peer=types.InputPeerEmpty(), + limit=self.DIALOGS_AT_ONCE, + hash=0, + exclude_pinned=True ) ) except FloodWait as e: