From 4b04910197a320a4b6f81f441bf553e917d1731b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 15 Oct 2018 10:08:56 +0200 Subject: [PATCH] Add user_id field to UserStatus --- pyrogram/client/types/user_and_chats/user_status.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyrogram/client/types/user_and_chats/user_status.py b/pyrogram/client/types/user_and_chats/user_status.py index 24b30d68..17b73ea1 100644 --- a/pyrogram/client/types/user_and_chats/user_status.py +++ b/pyrogram/client/types/user_and_chats/user_status.py @@ -28,6 +28,9 @@ class UserStatus(Object): "recently", "within_week", "within_month" or "long_time_ago" fields set. Args: + user_id (``int``): + User's id. Only available for UserStatus updates. + online (``bool``): True if the user is online in this moment, None otherwise. If True, the "date" field will be also set containing the online expiration date (i.e.: the date when a @@ -62,6 +65,7 @@ class UserStatus(Object): def __init__( self, + user_id: int = None, online: bool = None, offline: bool = None, date: int = None, @@ -70,6 +74,7 @@ class UserStatus(Object): within_month: bool = None, long_time_ago: bool = None ): + self.user_id = user_id self.online = online self.offline = offline self.date = date