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

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

Protected Properties

Property Type Description
$address string Optional. Thumbnail width
$foursquareId integer Optional. Foursquare identifier of the venue if known
$latitude float Latitude of the venue location in degrees
$longitude float Longitude of the venue location 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

Public Methods

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

Method Details

__construct() public method

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

getAddress() public method

public getAddress ( ) : string
return string

getFoursquareId() public method

public getFoursquareId ( ) : integer
return integer

getLatitude() public method

public getLatitude ( ) : float
return float

getLongitude() public method

public getLongitude ( ) : float
return float

getThumbHeight() public method

public getThumbHeight ( ) : integer
return integer

getThumbUrl() public method

public getThumbUrl ( ) : string
return string

getThumbWidth() public method

public getThumbWidth ( ) : integer
return integer

setAddress() public method

public setAddress ( string $address )
$address string

setFoursquareId() public method

public setFoursquareId ( integer $foursquareId )
$foursquareId integer

setLatitude() public method

public setLatitude ( float $latitude )
$latitude float

setLongitude() public method

public setLongitude ( float $longitude )
$longitude float

setThumbHeight() public method

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() public method

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() public method

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

Property Details

$address protected property

Optional. Thumbnail width
protected string $address
return string

$foursquareId protected property

Optional. Foursquare identifier of the venue if known
protected int $foursquareId
return integer

$latitude protected property

Latitude of the venue location in degrees
protected float $latitude
return float

$longitude protected property

Longitude of the venue location in degrees
protected float $longitude
return float

$map protected static property

protected static array $map
return array

$requiredParams protected static property

protected static array $requiredParams
return array

$thumbHeight protected property

Optional. Thumbnail height
protected int $thumbHeight
return integer

$thumbUrl protected property

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

$thumbWidth protected property

Optional. Thumbnail width
protected int $thumbWidth
return integer

$type protected property

protected string $type
return string