Class InputLocationMessageContentType.

see
package Default
inherited_from \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType

 Methods

create()

create(\TgBotApi\BotApiBase\Type\InputMessageContent\float $latitude, \TgBotApi\BotApiBase\Type\InputMessageContent\float $longitude, array $data = null
Static

Parameters

$latitude

$longitude

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. For live locations, a direction in which the user is moving, in degrees.

$heading : integer | null

Default

Must be between 1 and 360 if specified.

 

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

$horizontalAccuracy : float | integer | null

Default

 

Latitude of the location in degrees.

$latitude : float

Default

 

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

$livePeriod : integer | null

Default

 

Longitude of the location in degrees.

$longitude : float

Default

 

Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.

$proximityAlertRadius : integer | null

Default

Must be between 1 and 100000 if specified.