From 86e4fc4e62786cbd0632f196be7eeb22dec05e4b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 15 Oct 2018 09:20:13 +0200 Subject: [PATCH] Rename last_seen field to status in User class Also add docstrings for status --- pyrogram/client/types/user_and_chats/user.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py index fd4730c3..9c7eec1f 100644 --- a/pyrogram/client/types/user_and_chats/user.py +++ b/pyrogram/client/types/user_and_chats/user.py @@ -41,6 +41,9 @@ 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. @@ -70,7 +73,7 @@ class User(Object): is_mutual_contact: bool, is_deleted: bool, is_bot: bool, - last_seen, + status, first_name: str, last_name: str = None, username: str = None, @@ -84,7 +87,7 @@ class User(Object): self.is_mutual_contact = is_mutual_contact self.is_deleted = is_deleted self.is_bot = is_bot - self.last_seen = last_seen + self.status = status self.first_name = first_name self.last_name = last_name self.username = username