From 37d823f5792bec295536bc147642be70f18caa10 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 6 Jul 2020 16:07:06 +0200 Subject: [PATCH] Fix linked chat parsing There are two distinct ChatFull types using the same name (but different namespaces), their objects are kept in chat_full and full_chat. --- pyrogram/client/types/user_and_chats/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index d95c5b37..fe103573 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -252,7 +252,7 @@ class Chat(Object): if full_chat.id == c.id: chat = c - if isinstance(chat_full, types.ChannelFull): + if isinstance(full_chat, types.ChannelFull): if full_chat.linked_chat_id == c.id: linked_chat = c