InlineQueryResultLocation
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
No description
Type of the result, must be location.
Unique identifier for this result, 1-64 Bytes.
Location latitude in degrees.
Location longitude in degrees.
Location title.
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
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.
Optional. Inline keyboard attached to the message.
Optional. Content of the message to be sent instead of the location.
Optional. Url of the thumbnail for the result.
Optional. Thumbnail width.
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
at line 47
string
getType()
Type of the result, must be location.
at line 55
string
getId()
Unique identifier for this result, 1-64 Bytes.
at line 63
float
getLatitude()
Location latitude in degrees.
at line 71
float
getLongitude()
Location longitude in degrees.
at line 79
string
getTitle()
Location title.
at line 87
float|null
getHorizontalAccuracy()
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
at line 95
int|null
getLivePeriod()
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
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.
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.
at line 119
InlineKeyboardMarkup|null
getReplyMarkup()
Optional. Inline keyboard attached to the message.
at line 127
InputMessageContentInterface|null
getInputMessageContent()
Optional. Content of the message to be sent instead of the location.
at line 135
string|null
getThumbUrl()
Optional. Url of the thumbnail for the result.
at line 143
int|null
getThumbWidth()
Optional. Thumbnail width.
at line 151
int|null
getThumbHeight()
Optional. Thumbnail height.