From 62999772c2afde75c0fd0916e2ade951552dd6bd Mon Sep 17 00:00:00 2001 From: NoamDev <37066741+NoamDev@users.noreply.github.com> Date: Sat, 31 Oct 2020 18:08:29 +0200 Subject: [PATCH] Fix wrong comparison with a non-raw type (#525) chatex.send now returns raw.types.Chat instead of types.Chat --- pyrogram/methods/chats/get_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/methods/chats/get_chat.py b/pyrogram/methods/chats/get_chat.py index 4e9a5428..cd8f5c9d 100644 --- a/pyrogram/methods/chats/get_chat.py +++ b/pyrogram/methods/chats/get_chat.py @@ -67,7 +67,7 @@ class GetChat(Scaffold): await self.fetch_peers([r.chat]) - if isinstance(r.chat, types.Chat): + if isinstance(r.chat, raw.types.Chat): chat_id = -r.chat.id if isinstance(r.chat, raw.types.Channel):