mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Move date field
This commit is contained in:
parent
2d65eb3dc7
commit
b00604dbc9
@ -38,6 +38,9 @@ class UserStatus(Object):
|
|||||||
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``):
|
||||||
|
Exact date in unix time. Available only in case "online" or "offline" equals to True.
|
||||||
|
|
||||||
recently (``bool``):
|
recently (``bool``):
|
||||||
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.
|
||||||
@ -53,9 +56,6 @@ class UserStatus(Object):
|
|||||||
long_time_ago (``bool``):
|
long_time_ago (``bool``):
|
||||||
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.
|
||||||
|
|
||||||
date (``int``):
|
|
||||||
Exact date in unix time. Available only in case "online" or "offline" equals to True.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ID = 0xb0700031
|
ID = 0xb0700031
|
||||||
@ -64,16 +64,16 @@ class UserStatus(Object):
|
|||||||
self,
|
self,
|
||||||
online: bool = None,
|
online: bool = None,
|
||||||
offline: bool = None,
|
offline: bool = None,
|
||||||
|
date: int = None,
|
||||||
recently: bool = None,
|
recently: bool = None,
|
||||||
within_week: bool = None,
|
within_week: bool = None,
|
||||||
within_month: bool = None,
|
within_month: bool = None,
|
||||||
long_time_ago: bool = None,
|
long_time_ago: bool = None
|
||||||
date: int = None,
|
|
||||||
):
|
):
|
||||||
self.online = online
|
self.online = online
|
||||||
self.offline = offline
|
self.offline = offline
|
||||||
|
self.date = date
|
||||||
self.recently = recently
|
self.recently = recently
|
||||||
self.within_week = within_week
|
self.within_week = within_week
|
||||||
self.within_month = within_month
|
self.within_month = within_month
|
||||||
self.long_time_ago = long_time_ago
|
self.long_time_ago = long_time_ago
|
||||||
self.date = date
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user