From 0a8103b6e8ea862e52babe5b8be668ba77db85b4 Mon Sep 17 00:00:00 2001 From: Manuel1510 <46545785+Manuel1510@users.noreply.github.com> Date: Sun, 27 Oct 2019 18:48:41 +0100 Subject: [PATCH] Replace messages.getPeerDialogs with channels.getFullChannel (#1305) --- telethon/client/updates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telethon/client/updates.py b/telethon/client/updates.py index 2a9dee95..d4098870 100644 --- a/telethon/client/updates.py +++ b/telethon/client/updates.py @@ -459,10 +459,10 @@ class UpdateMethods: if not pts_date: # First-time, can't get difference. Get pts instead. - result = await self(functions.messages.GetPeerDialogsRequest([ - utils.get_input_dialog(where) - ])) - self._state_cache[channel_id] = result.dialogs[0].pts + result = await self(functions.channels.GetFullChannelRequest( + utils.get_input_channel(where) + )) + self._state_cache[channel_id] = result.full_chat.pts return result = await self(functions.updates.GetChannelDifferenceRequest(