PHP 클래스 TelegramBot\Api\Types\Inline\QueryResult\Location

또한 보기: 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.
상속: extends AbstractInlineQueryResult
파일 보기 프로젝트 열기: TelegramBot/Api

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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 getLatitude ( ) : float
리턴 float

getLongitude() 공개 메소드

public getLongitude ( ) : float
리턴 float

getThumbHeight() 공개 메소드

public getThumbHeight ( ) : integer
리턴 integer

getThumbUrl() 공개 메소드

public getThumbUrl ( ) : string
리턴 string

getThumbWidth() 공개 메소드

public getThumbWidth ( ) : integer
리턴 integer

setLatitude() 공개 메소드

public setLatitude ( float $latitude )
$latitude float

setLongitude() 공개 메소드

public setLongitude ( float $longitude )
$longitude float

setThumbHeight() 공개 메소드

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() 공개 메소드

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() 공개 메소드

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

프로퍼티 상세

$latitude 보호되어 있는 프로퍼티

Location latitude in degrees
protected float $latitude
리턴 float

$longitude 보호되어 있는 프로퍼티

Location longitude in degrees
protected float $longitude
리턴 float

$map 보호되어 있는 정적으로 프로퍼티

protected static array $map
리턴 array

$requiredParams 보호되어 있는 정적으로 프로퍼티

protected static array $requiredParams
리턴 array

$thumbHeight 보호되어 있는 프로퍼티

Optional. Thumbnail height
protected int $thumbHeight
리턴 integer

$thumbUrl 보호되어 있는 프로퍼티

Optional. Url of the thumbnail for the result
protected string $thumbUrl
리턴 string

$thumbWidth 보호되어 있는 프로퍼티

Optional. Thumbnail width
protected int $thumbWidth
리턴 integer

$type 보호되어 있는 프로퍼티

protected string $type
리턴 string