2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Small fixes and rewords

This commit is contained in:
Dan 2018-10-28 15:27:49 +01:00
parent 0a946033c3
commit 4fd93a790f

View File

@ -28,35 +28,35 @@ 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_id (``int``, *optional*):
User's id. Only available for UserStatus updates. User's id. Only available for incoming UserStatus updates.
online (``bool``): online (``bool``, *optional*):
True if the user is online in this moment, None otherwise. True if the user is online in this very 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
user will automatically go offline in case of no action by his client). user will automatically go offline in case of no action by his client).
offline (``bool``): offline (``bool``, *optional*):
True if the user is offline and has the Last Seen privacy setting visible for everybody, None otherwise. True if the user is offline in this moment and has the Last Seen privacy setting public, None otherwise.
If True, the "date" field will be also set containing the last seen date (i.e.: the date when a user If True, the "date" field will be also set containing the last seen date (i.e.: the date when a user
was online the last time). was online the last time).
date (``int``): date (``int``, *optional*):
Exact date in unix time. Available only in case "online" or "offline" equals to True. Exact date in unix time. Available only in case "online" or "offline" equals to True.
recently (``bool``): recently (``bool``, *optional*):
True for users with hidden Last Seen privacy that have been online between 1 second and 2-3 days ago, True for users with hidden Last Seen privacy that have been online between 1 second and 2-3 days ago,
None otherwise. None otherwise.
within_week (``bool``): within_week (``bool``, *optional*):
True for users with hidden Last Seen privacy that have been online between 2-3 and seven days ago, True for users with hidden Last Seen privacy that have been online between 2-3 and seven days ago,
None otherwise. None otherwise.
within_month (``bool``): within_month (``bool``, *optional*):
True for users with hidden Last Seen privacy that have been online between 6-7 days and a month ago, True for users with hidden Last Seen privacy that have been online between 6-7 days and a month ago,
None otherwise. None otherwise.
long_time_ago (``bool``): long_time_ago (``bool``, *optional*):
True for users with hidden Last Seen privacy that have been online more than a month ago (this is also True for users with hidden Last Seen privacy that have been online more than a month ago (this is also
always shown to blocked users), None otherwise. always shown to blocked users), None otherwise.
""" """