diff --git a/pyrogram/types/user_and_chats/chat.py b/pyrogram/types/user_and_chats/chat.py index 550b22b2..c8287cf9 100644 --- a/pyrogram/types/user_and_chats/chat.py +++ b/pyrogram/types/user_and_chats/chat.py @@ -379,7 +379,7 @@ class Chat(Object): @staticmethod def _parse_chat(client, chat: Union[raw.types.Chat, raw.types.User, raw.types.Channel]) -> "Chat": - if isinstance(chat, raw.types.Chat): + if isinstance(chat, (raw.types.Chat, raw.types.ChatForbidden)): return Chat._parse_chat_chat(client, chat) elif isinstance(chat, raw.types.User): return Chat._parse_user_chat(client, chat)