diff --git a/pyrogram/types/user_and_chats/chat.py b/pyrogram/types/user_and_chats/chat.py index a902e4eda5..32e6d47c88 100644 --- a/pyrogram/types/user_and_chats/chat.py +++ b/pyrogram/types/user_and_chats/chat.py @@ -299,7 +299,7 @@ def _parse_channel_chat(client, channel: raw.types.Channel) -> "Chat": return Chat( id=peer_id, type=enums.ChatType.SUPERGROUP if getattr(channel, "megagroup", None) else enums.ChatType.CHANNEL, - is_forum=getattr(channel, "forum", None), + is_forum=getattr(channel, "forum", None) if getattr(channel, "megagroup", None) else None, is_verified=getattr(channel, "verified", None), is_restricted=getattr(channel, "restricted", None), is_creator=getattr(channel, "creator", None),