Class SendLocationMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Method\float $latitude, \TgBotApi\BotApiBase\Method\float $longitude, array $data = null
Static

Parameters

$chatId

integerstring

$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. Pass True, if the message should be sent even if the specified replied-to message is not found.

$allowSendingWithoutReply : boolean | null

Default

 

Optional. Sends the message silently. Users will receive a notification with no sound.

$disableNotification : boolean | null

Default

 

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.

$latitude : float

Default

 

Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.

$livePeriod : integer | null

Default

 

Longitude of the location.

$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.

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default

 

Optional. If the message is a reply, ID of the original message.

$replyToMessageId : integer | null

Default