PHP Class TelegramBot\Api\Types\Inline\QueryResult\Location

See also: https://core.telegram.org/bots/api#inlinequeryresultlocation Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use InputMessageContent to send a message with the specified content instead of the location. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
Inheritance: extends AbstractInlineQueryResult
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$latitude float Location latitude in degrees
$longitude float Location longitude in degrees
$map array
$requiredParams array
$thumbHeight integer Optional. Thumbnail height
$thumbUrl string Optional. Url of the thumbnail for the result
$thumbWidth integer Optional. Thumbnail width
$type string

Méthodes publiques

Méthode Description
__construct ( string $id, float $latitude, float $longitude, string $title, string $thumbUrl = null, integer $thumbWidth = null, integer $thumbHeight = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null ) Voice constructor
getLatitude ( ) : float
getLongitude ( ) : float
getThumbHeight ( ) : integer
getThumbUrl ( ) : string
getThumbWidth ( ) : integer
setLatitude ( float $latitude )
setLongitude ( float $longitude )
setThumbHeight ( integer $thumbHeight )
setThumbUrl ( string $thumbUrl )
setThumbWidth ( integer $thumbWidth )

Method Details

__construct() public méthode

Voice constructor
public __construct ( string $id, float $latitude, float $longitude, string $title, string $thumbUrl = null, integer $thumbWidth = null, integer $thumbHeight = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null )
$id string
$latitude float
$longitude float
$title string
$thumbUrl string
$thumbWidth integer
$thumbHeight integer
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent | null

getLatitude() public méthode

public getLatitude ( ) : float
Résultat float

getLongitude() public méthode

public getLongitude ( ) : float
Résultat float

getThumbHeight() public méthode

public getThumbHeight ( ) : integer
Résultat integer

getThumbUrl() public méthode

public getThumbUrl ( ) : string
Résultat string

getThumbWidth() public méthode

public getThumbWidth ( ) : integer
Résultat integer

setLatitude() public méthode

public setLatitude ( float $latitude )
$latitude float

setLongitude() public méthode

public setLongitude ( float $longitude )
$longitude float

setThumbHeight() public méthode

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() public méthode

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() public méthode

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

Property Details

$latitude protected_oe property

Location latitude in degrees
protected float $latitude
Résultat float

$longitude protected_oe property

Location longitude in degrees
protected float $longitude
Résultat float

$map protected_oe static_oe property

protected static array $map
Résultat array

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$thumbHeight protected_oe property

Optional. Thumbnail height
protected int $thumbHeight
Résultat integer

$thumbUrl protected_oe property

Optional. Url of the thumbnail for the result
protected string $thumbUrl
Résultat string

$thumbWidth protected_oe property

Optional. Thumbnail width
protected int $thumbWidth
Résultat integer

$type protected_oe property

protected string $type
Résultat string