From 87512e20c3bf0532950cfedc41c465a6e065467a Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 19 Oct 2019 16:36:45 +0200 Subject: [PATCH] Tiny copy-paste fix --- pyrogram/client/types/user_and_chats/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index 15a4f8d6..9c25980b 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -180,7 +180,7 @@ class Chat(Object): id=peer_id, type="group", title=chat.title, - is_creator=getattr(channel, "creator", None), + is_creator=getattr(chat, "creator", None), photo=ChatPhoto._parse(client, getattr(chat, "photo", None), peer_id, 0), permissions=ChatPermissions._parse(getattr(chat, "default_banned_rights", None)), members_count=getattr(chat, "participants_count", None),