There was an error while loading. Please reload this page.
1 parent 98ec926 commit 8bdfea3Copy full SHA for 8bdfea3
pyrogram/types/user_and_chats/chat.py
@@ -382,7 +382,7 @@ def _parse_user_chat(client, user: raw.types.User) -> "Chat":
382
def _parse_chat_chat(client, chat: raw.types.Chat) -> "Chat":
383
peer_id = -chat.id
384
385
- if isinstance(channel, raw.types.ChatForbidden):
+ if isinstance(chat, raw.types.ChatForbidden):
386
return Chat(
387
id=peer_id,
388
type=enums.ChatType.GROUP,
0 commit comments