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):