From caf1dea22789271a382c6c33ab52bb17ed70a8f8 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:48:13 +0100 Subject: [PATCH] Update Chat type --- pyrogram/client/types/chat.py | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pyrogram/client/types/chat.py b/pyrogram/client/types/chat.py index fb31bee1..78853bf4 100644 --- a/pyrogram/client/types/chat.py +++ b/pyrogram/client/types/chat.py @@ -1,3 +1,6 @@ +from . import Message, ChatPhoto + + class Chat: def __init__(self, id: int, @@ -7,10 +10,22 @@ class Chat: first_name: str = None, last_name: str = None, all_members_are_administrators: bool = None, - photo=None, + photo: ChatPhoto = None, description: str = None, invite_link: str = None, - pinned_message=None, + pinned_message: Message = None, sticker_set_name: str = None, - can_set_sticker_set=None): - ... + can_set_sticker_set: bool = None): + self.id = id + self.type = type + self.title = title + self.username = username + self.first_name = first_name + self.last_name = last_name + self.all_members_are_administrators = all_members_are_administrators + self.photo = photo + self.description = description + self.invite_link = invite_link + self.pinned_message = pinned_message + self.sticker_set_name = sticker_set_name + self.can_set_sticker_set = can_set_sticker_set