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

See also: https://core.telegram.org/bots/api#inputvenuemessagecontent Represents the content of a venue message to be sent as the result of an inline query.
Inheritance: extends TelegramBot\Api\Types\Inline\InputMessageContent, implements TelegramBot\Api\TypeInterface
Show file Open project: TelegramBot/Api

Protected Properties

Property Type Description
$address string Address of the venue
$foursquareId string Optional. Foursquare identifier of the venue, if known
$latitude float Latitude of the venue in degrees
$longitude float Longitude of the venue in degrees
$map array
$requiredParams array
$title string Name of the venue

Public Methods

Method Description
__construct ( float $latitude, float $longitude, string $title, string $address, string $foursquareId = null ) Venue constructor.
getAddress ( ) : string
getFoursquareId ( ) : string
getLatitude ( ) : float
getLongitude ( ) : float
getTitle ( ) : string
setAddress ( string $address )
setFoursquareId ( string $foursquareId )
setLatitude ( float $latitude )
setLongitude ( float $longitude )
setTitle ( string $title )

Method Details

__construct() public method

Venue constructor.
public __construct ( float $latitude, float $longitude, string $title, string $address, string $foursquareId = null )
$latitude float
$longitude float
$title string
$address string
$foursquareId string

getAddress() public method

public getAddress ( ) : string
return string

getFoursquareId() public method

public getFoursquareId ( ) : string
return string

getLatitude() public method

public getLatitude ( ) : float
return float

getLongitude() public method

public getLongitude ( ) : float
return float

getTitle() public method

public getTitle ( ) : string
return string

setAddress() public method

public setAddress ( string $address )
$address string

setFoursquareId() public method

public setFoursquareId ( string $foursquareId )
$foursquareId string

setLatitude() public method

public setLatitude ( float $latitude )
$latitude float

setLongitude() public method

public setLongitude ( float $longitude )
$longitude float

setTitle() public method

public setTitle ( string $title )
$title string

Property Details

$address protected property

Address of the venue
protected string $address
return string

$foursquareId protected property

Optional. Foursquare identifier of the venue, if known
protected string $foursquareId
return string

$latitude protected property

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

$longitude protected property

Longitude of the venue 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

$title protected property

Name of the venue
protected string $title
return string