class InlineQueryResultLocation implements InlineQueryResultInterface

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

Methods

__construct(string $type, string $id, float $latitude, float $longitude, string $title, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = 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 location.

string
getId()

Unique identifier for this result, 1-64 Bytes.

float
getLatitude()

Location latitude in degrees.

float
getLongitude()

Location longitude in degrees.

string
getTitle()

Location title.

float|null
getHorizontalAccuracy()

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

int|null
getLivePeriod()

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

int|null
getHeading()

Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

int|null
getProximityAlertRadius()

Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

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

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 26
__construct(string $type, string $id, float $latitude, float $longitude, string $title, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = 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
float|null $horizontal_accuracy
int|null $live_period
int|null $heading
int|null $proximity_alert_radius
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content
string|null $thumb_url
int|null $thumb_width
int|null $thumb_height

at line 47
string getType()

Type of the result, must be location.

Return Value

string

at line 55
string getId()

Unique identifier for this result, 1-64 Bytes.

Return Value

string

at line 63
float getLatitude()

Location latitude in degrees.

Return Value

float

at line 71
float getLongitude()

Location longitude in degrees.

Return Value

float

at line 79
string getTitle()

Location title.

Return Value

string

at line 87
float|null getHorizontalAccuracy()

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

Return Value

float|null

at line 95
int|null getLivePeriod()

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

Return Value

int|null

at line 103
int|null getHeading()

Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

Return Value

int|null

at line 111
int|null getProximityAlertRadius()

Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

Return Value

int|null

at line 119
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 127
InputMessageContentInterface|null getInputMessageContent()

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

Return Value

InputMessageContentInterface|null

at line 135
string|null getThumbUrl()

Optional. Url of the thumbnail for the result.

Return Value

string|null

at line 143
int|null getThumbWidth()

Optional. Thumbnail width.

Return Value

int|null

at line 151
int|null getThumbHeight()

Optional. Thumbnail height.

Return Value

int|null