Class SendLocationMethod.
Methods
create()
create(integer|string $chatId, \TgBotApi\BotApiBase\Method\float $latitude, \TgBotApi\BotApiBase\Method\float $longitude, array $data = null
)
Static
Parameters
$chatId
integer
string
$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
Optional. Sends the message silently. Users will receive a notification with no sound.
$disableNotification : boolean | null
Optional. For live locations, a direction in which the user is moving, in degrees.
$heading : integer | null
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
Latitude of the location.
$latitude : float
Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.
$livePeriod : integer | null
Longitude of the location.
$longitude : float
Optional. For live locations, a maximum distance
for proximity alerts about approaching another chat member, in meters.
$proximityAlertRadius : integer | null
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
Optional. If the message is a reply, ID of the original message.
$replyToMessageId : integer | null