MessageEntityFormattedDate¶
- class pyrogram.raw.types.MessageEntityFormattedDate[source]¶
Represents a specific point in time, rendered as specified here »
Constructor of
MessageEntity.- Details:
Layer:
229ID:
904AC7C7
- Parameters:
offset (
int32-bit) – Offset of message entity within message (in UTF-16 code units )length (
int32-bit) – Length of message entity within message (in UTF-16 code units )date (
int32-bit) – The date as a UNIX timestamp: the allowed value ranges from0to the current date plus 1098 days (time()+1098*86400).relative (
bool, optional) – If set, render a relative date, see here » for more info. Cannot be combined with any of the other flags.short_time (
bool, optional) – Renders the time in short format: hours and minutes, according to the user’s locale settings; cannot be combined withlong_time.long_time (
bool, optional) – Renders the time in long format: hours, minutes, seconds and maybe timezone, according to the user’s locale settings; cannot be combined withshort_time.short_date (
bool, optional) – Renders the time in short format: month, date, (and year, if different from the current one), all according the user’s locale settings; cannot be combined withlong_date.long_date (
bool, optional) – Renders the time in long format: always month, date and year, all according the user’s locale settings; cannot be combined withshort_date.day_of_week (
bool, optional) – Renders the day of the week according to the user’s locale settings.