Skip to content

Commit 8bdfea3

Browse files
Fix NameError (#59)
1 parent 98ec926 commit 8bdfea3

File tree

1 file changed

+1
-1
lines changed
  • pyrogram/types/user_and_chats

1 file changed

+1
-1
lines changed

pyrogram/types/user_and_chats/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def _parse_user_chat(client, user: raw.types.User) -> "Chat":
382382
def _parse_chat_chat(client, chat: raw.types.Chat) -> "Chat":
383383
peer_id = -chat.id
384384

385-
if isinstance(channel, raw.types.ChatForbidden):
385+
if isinstance(chat, raw.types.ChatForbidden):
386386
return Chat(
387387
id=peer_id,
388388
type=enums.ChatType.GROUP,

0 commit comments

Comments
 (0)