InputLocationMessageContent
class InputLocationMessageContent implements InputMessageContentInterface
Represents the content of a location message to be sent as the result of an inline query.
Methods
No description
Latitude of the location in degrees.
Longitude of the location in degrees.
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Details
at line 18
__construct(float $latitude, float $longitude, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null)
No description
at line 31
float
getLatitude()
Latitude of the location in degrees.
at line 39
float
getLongitude()
Longitude of the location in degrees.
at line 47
float|null
getHorizontalAccuracy()
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
at line 55
int|null
getLivePeriod()
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
at line 63
int|null
getHeading()
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
at line 71
int|null
getProximityAlertRadius()
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.