Class InlineQueryResultLocationType.

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

see
package Default

 Methods

create()

create(\TgBotApi\BotApiBase\Type\InlineQueryResult\string $id, \TgBotApi\BotApiBase\Type\InlineQueryResult\float $latitude, \TgBotApi\BotApiBase\Type\InlineQueryResult\float $longitude, \TgBotApi\BotApiBase\Type\InlineQueryResult\string $title, array $data = null
Static

Parameters

$id

$latitude

$longitude

$title

$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

 

Optional. Content of the message to be sent instead of the location.

$inputMessageContent : \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType | null

Default

 

Location latitude 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

 

Location longitude in degrees.

$longitude : float

Default

 

Optional. For live locations, a maximum distance for proximity alerts a bout approaching another chat member, in meters. Must be between 1 and 100000 if specified.

$proximityAlertRadius : integer | null

Default

 

Optional. Thumbnail height.

$thumbHeight : integer | null

Default

 

Optional. Url of the thumbnail for the result.

$thumbUrl : string | null

Default

 

Optional. Thumbnail width.

$thumbWidth : integer | null

Default

 

Location title.

$title : string

Default