Skip to content

Commit 87512e2

Browse files
committed
Tiny copy-paste fix
1 parent 85e08f7 commit 87512e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pyrogram/client/types/user_and_chats

pyrogram/client/types/user_and_chats/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _parse_chat_chat(client, chat: types.Chat) -> "Chat":
180180
id=peer_id,
181181
type="group",
182182
title=chat.title,
183-
is_creator=getattr(channel, "creator", None),
183+
is_creator=getattr(chat, "creator", None),
184184
photo=ChatPhoto._parse(client, getattr(chat, "photo", None), peer_id, 0),
185185
permissions=ChatPermissions._parse(getattr(chat, "default_banned_rights", None)),
186186
members_count=getattr(chat, "participants_count", None),

0 commit comments

Comments
 (0)