From 0a946033c3d10d19d9069b42995fd483600f6445 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 28 Oct 2018 15:27:20 +0100 Subject: [PATCH] Move optional field down after required fields --- pyrogram/client/types/user_and_chats/user.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py index fc267b07..06045b00 100644 --- a/pyrogram/client/types/user_and_chats/user.py +++ b/pyrogram/client/types/user_and_chats/user.py @@ -41,12 +41,12 @@ class User(Object): is_bot (``bool``): True, if this user is a bot. - status (:obj:`UserStatus `): - User's Last Seen status. Empty for bots. - first_name (``str``): User's or bot's first name. + status (:obj:`UserStatus `, *optional*): + User's Last Seen status. Empty for bots. + last_name (``str``, *optional*): User's or bot's last name. @@ -76,8 +76,8 @@ class User(Object): is_mutual_contact: bool, is_deleted: bool, is_bot: bool, - status, first_name: str, + status=None, last_name: str = None, username: str = None, language_code: str = None, @@ -91,8 +91,8 @@ class User(Object): self.is_mutual_contact = is_mutual_contact self.is_deleted = is_deleted self.is_bot = is_bot - self.status = status self.first_name = first_name + self.status = status self.last_name = last_name self.username = username self.language_code = language_code