Inherits MessageContent.
A message with a location.
Public Fields | |
object_ptr< location > | location_ |
The location description. | |
int32 | live_period_ |
Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever. | |
int32 | expires_in_ |
Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes. | |
int32 | heading_ |
For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown. | |
int32 | proximity_alert_radius_ |
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender. | |
Public Instance Methods | |
messageLocation () | |
messageLocation (object_ptr< location > &&location_, int32 live_period_, int32 expires_in_, int32 heading_, int32 proximity_alert_radius_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 303973492 |
Identifier uniquely determining a type of the object. | |
messageLocation | ( | ) |
A message with a location.
messageLocation | ( | object_ptr< location > && | location_, |
int32 | live_period_, | ||
int32 | expires_in_, | ||
int32 | heading_, | ||
int32 | proximity_alert_radius_ | ||
) |
A message with a location.
[in] | location_ | The location description. |
[in] | live_period_ | Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever. |
[in] | expires_in_ | Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes. |
[in] | heading_ | For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown. |
[in] | proximity_alert_radius_ | For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender. |
|
finalvirtual |