messageEntityFormattedDate
Represents a specific point in time, rendered as specified here » All flags are optional, with the following limitations: If any of the flags are combined, their rendering order in the text is the following:
type tg.MessageEntityFormattedDate struct { /* ... */ }
Implements MessageEntity.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Relative | bool | — | If set, render a relative date, see here » for more info. Cannot be combined with any of the other flags. |
ShortTime | bool | — | Renders the time in short format: hours and minutes, according to the user's locale settings; cannot be combined with long_time. |
LongTime | bool | — | Renders the time in long format: hours, minutes, seconds and maybe timezone, according to the user's locale settings; cannot be combined with short_time. |
ShortDate | bool | — | 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 with long_date. |
LongDate | bool | — | Renders the time in long format: always month, date and year, all according the user's locale settings; cannot be combined with short_date. |
DayOfWeek | bool | — | Renders the day of the week according to the user's locale settings. |
Offset | int | yes | Offset of message entity within message (in UTF-16 code units) |
Length | int | yes | Length of message entity within message (in UTF-16 code units) |
Date | int | yes | The date as a UNIX timestamp: the allowed value ranges from 0 to the current date plus 1098 days (time()+1098*86400). |
References
- Official documentation
- Generated Go reference
- TL definition:
messageEntityFormattedDate#904ac7c7