From 4d367ce04e66f7f38abc62fbd3baae8d437b6a61 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:46:49 +0100 Subject: [PATCH] Add ChatMember type --- pyrogram/client/types/chat_member.py | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pyrogram/client/types/chat_member.py diff --git a/pyrogram/client/types/chat_member.py b/pyrogram/client/types/chat_member.py new file mode 100644 index 00000000..e8e4d9be --- /dev/null +++ b/pyrogram/client/types/chat_member.py @@ -0,0 +1,37 @@ +from . import User + + +class ChatMember: + def __init__(self, + user: User, + status: str, + until_date: int = None, + can_be_edited: bool = None, + can_change_info: bool = None, + can_post_messages: bool = None, + can_edit_messages: bool = None, + can_delete_messages: bool = None, + can_invite_users: bool = None, + can_restrict_members: bool = None, + can_pin_messages: bool = None, + can_promote_members: bool = None, + can_send_messages: bool = None, + can_send_media_messages: bool = None, + can_send_other_messages: bool = None, + can_add_web_page_pewviews: bool = None): + self.user = user + self.status = status + self.until_date = until_date + self.can_be_edited = can_be_edited + self.can_change_info = can_change_info + self.can_post_messages = can_post_messages + self.can_edit_messages = can_edit_messages + self.can_delete_messages = can_delete_messages + self.can_invite_users = can_invite_users + self.can_restrict_members = can_restrict_members + self.can_pin_messages = can_pin_messages + self.can_promote_members = can_promote_members + self.can_send_messages = can_send_messages + self.can_send_media_messages = can_send_media_messages + self.can_send_other_messages = can_send_other_messages + self.can_add_web_page_pewviews = can_add_web_page_pewviews