Layer 227
MessageEntityFormattedDate
Represents a specific point in time, rendered as specified here
constructor
messageEntityFormattedDate#904ac7c7 flags:# relative:flags.0?true short_time:flags.1?true long_time:flags.2?true short_date:flags.3?true long_date:flags.4?true day_of_week:flags.5?true offset:int length:int date:int = MessageEntity;
Parameters
| Name | Type | Description |
|---|---|---|
| Relative | flags .0? true | If set, render a relative date, see here for more info. Cannot be combined with any of the other flags. |
| ShortTime | flags .1? true | Renders the time in short format: hours and minutes, according to the user's locale settings; cannot be combined with long_time. |
| LongTime | flags .2? true | 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 | flags .3? true | 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 | flags .4? true | 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 | flags .5? true | Renders the day of the week according to the user's locale settings. |
| Offset | int | Offset of message entity within message (in UTF-16 code units ) |
| Length | int | Length of message entity within message (in UTF-16 code units ) |
| Date | int | The date as a UNIX timestamp: the allowed value ranges from 0 to the current date plus 1098 days ( time()+1098*86400 ). |
Returns
MessageEntityGogram Example
// Creating MessageEntityFormattedDate constructor obj := &tg.MessageEntityFormattedDate{ Relative: nil, ShortTime: nil, LongTime: nil, ShortDate: nil, LongDate: nil, DayOfWeek: nil, // ... more required fields }