Inherits InputMessageContent.
A message with a location.
Public Fields | |
object_ptr< location > | location_ |
Location to be sent. | |
int32 | live_period_ |
Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent live location, and 0 otherwise. | |
int32 | heading_ |
For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown. | |
int32 | proximity_alert_radius_ |
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages. | |
Public Instance Methods | |
inputMessageLocation () | |
inputMessageLocation (object_ptr< location > &&location_, int32 live_period_, 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 = 648735088 |
Identifier uniquely determining a type of the object. | |
A message with a location.
inputMessageLocation | ( | object_ptr< location > && | location_, |
int32 | live_period_, | ||
int32 | heading_, | ||
int32 | proximity_alert_radius_ | ||
) |
A message with a location.
[in] | location_ | Location to be sent. |
[in] | live_period_ | Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent live location, and 0 otherwise. |
[in] | heading_ | For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown. |
[in] | proximity_alert_radius_ | For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages. |
|
finalvirtual |