class InputLocationMessageContent implements InputMessageContentInterface

Represents the content of a location message to be sent as the result of an inline query.

Methods

__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

float
getLatitude()

Latitude of the location in degrees.

float
getLongitude()

Longitude of the location in degrees.

float|null
getHorizontalAccuracy()

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

int|null
getLivePeriod()

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

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.

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.

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

Parameters

float $latitude
float $longitude
float|null $horizontal_accuracy
int|null $live_period
int|null $heading
int|null $proximity_alert_radius

at line 31
float getLatitude()

Latitude of the location in degrees.

Return Value

float

at line 39
float getLongitude()

Longitude of the location in degrees.

Return Value

float

at line 47
float|null getHorizontalAccuracy()

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

Return Value

float|null

at line 55
int|null getLivePeriod()

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

Return Value

int|null

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.

Return Value

int|null

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.

Return Value

int|null