mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Add user_id field to UserStatus
This commit is contained in:
parent
79a9ddfab5
commit
4b04910197
@ -28,6 +28,9 @@ class UserStatus(Object):
|
|||||||
"recently", "within_week", "within_month" or "long_time_ago" fields set.
|
"recently", "within_week", "within_month" or "long_time_ago" fields set.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
user_id (``int``):
|
||||||
|
User's id. Only available for UserStatus updates.
|
||||||
|
|
||||||
online (``bool``):
|
online (``bool``):
|
||||||
True if the user is online in this moment, None otherwise.
|
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
|
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__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
user_id: int = None,
|
||||||
online: bool = None,
|
online: bool = None,
|
||||||
offline: bool = None,
|
offline: bool = None,
|
||||||
date: int = None,
|
date: int = None,
|
||||||
@ -70,6 +74,7 @@ class UserStatus(Object):
|
|||||||
within_month: bool = None,
|
within_month: bool = None,
|
||||||
long_time_ago: bool = None
|
long_time_ago: bool = None
|
||||||
):
|
):
|
||||||
|
self.user_id = user_id
|
||||||
self.online = online
|
self.online = online
|
||||||
self.offline = offline
|
self.offline = offline
|
||||||
self.date = date
|
self.date = date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user