class InlineQueryResultVenue implements InlineQueryResultInterface

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

Methods

__construct(string $type, string $id, float $latitude, float $longitude, string $title, string $address, string|null $foursquare_id = null, string|null $foursquare_type = null, string|null $google_place_id = null, string|null $google_place_type = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

string
getType()

Type of the result, must be venue.

string
getId()

Unique identifier for this result, 1-64 Bytes.

float
getLatitude()

Latitude of the venue location in degrees.

float
getLongitude()

Longitude of the venue location in degrees.

string
getTitle()

Title of the venue.

string
getAddress()

Address of the venue.

string|null
getFoursquareId()

Optional. Foursquare identifier of the venue if known.

string|null
getFoursquareType()

Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.).

string|null
getGooglePlaceId()

Optional. Google Places identifier of the venue.

string|null
getGooglePlaceType()

Optional. Google Places type of the venue. (See supported types.).

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

Optional. Content of the message to be sent instead of the venue.

string|null
getThumbUrl()

Optional. Url of the thumbnail for the result.

int|null
getThumbWidth()

Optional. Thumbnail width.

int|null
getThumbHeight()

Optional. Thumbnail height.

Details

at line 27
__construct(string $type, string $id, float $latitude, float $longitude, string $title, string $address, string|null $foursquare_id = null, string|null $foursquare_type = null, string|null $google_place_id = null, string|null $google_place_type = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

Parameters

string $type
string $id
float $latitude
float $longitude
string $title
string $address
string|null $foursquare_id
string|null $foursquare_type
string|null $google_place_id
string|null $google_place_type
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content
string|null $thumb_url
int|null $thumb_width
int|null $thumb_height

at line 49
string getType()

Type of the result, must be venue.

Return Value

string

at line 57
string getId()

Unique identifier for this result, 1-64 Bytes.

Return Value

string

at line 65
float getLatitude()

Latitude of the venue location in degrees.

Return Value

float

at line 73
float getLongitude()

Longitude of the venue location in degrees.

Return Value

float

at line 81
string getTitle()

Title of the venue.

Return Value

string

at line 89
string getAddress()

Address of the venue.

Return Value

string

at line 97
string|null getFoursquareId()

Optional. Foursquare identifier of the venue if known.

Return Value

string|null

at line 105
string|null getFoursquareType()

Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.).

Return Value

string|null

at line 113
string|null getGooglePlaceId()

Optional. Google Places identifier of the venue.

Return Value

string|null

at line 121
string|null getGooglePlaceType()

Optional. Google Places type of the venue. (See supported types.).

Return Value

string|null

at line 129
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 137
InputMessageContentInterface|null getInputMessageContent()

Optional. Content of the message to be sent instead of the venue.

Return Value

InputMessageContentInterface|null

at line 145
string|null getThumbUrl()

Optional. Url of the thumbnail for the result.

Return Value

string|null

at line 153
int|null getThumbWidth()

Optional. Thumbnail width.

Return Value

int|null

at line 161
int|null getThumbHeight()

Optional. Thumbnail height.

Return Value

int|null