Class InlineQueryResultLocation
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultLocation
- All Implemented Interfaces:
InlineQueryResult
,Serializable
Represents a location on a map. By default, the location will be sent by the user.
Alternatively, you can use
inputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent)
to send a message with the specified content instead of the location.- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultLocation
(String id, double latitude, double longitude, String title) Required -
Method Summary
Modifier and TypeMethodDescriptionheading
(int heading) OptionalhorizontalAccuracy
(Float horizontal_accuracy) OptionalinputMessageContent
(InputTextMessageContent input_message_content) OptionallivePeriod
(int live_period) OptionalproximityAlertRadius
(int proximity_alert_radius) OptionalreplyMarkup
(InlineKeyboardMarkup keyboard) OptionalthumbnailHeight
(int thumbnail_height) OptionalthumbnailUrl
(String thumbnail_url) OptionalthumbnailWidth
(int thumbnail_width) Optional
-
Constructor Details
-
InlineQueryResultLocation
-
-
Method Details
-
horizontalAccuracy
Optional- Parameters:
horizontal_accuracy
- The radius of uncertainty for the location, measured in meters; 0-1500- Returns:
InlineQueryResultLocation
-
livePeriod
Optional- Parameters:
live_period
- Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.- Returns:
InlineQueryResultLocation
-
heading
Optional- Parameters:
heading
- For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.- Returns:
InlineQueryResultLocation
-
proximityAlertRadius
Optional- Parameters:
proximity_alert_radius
- For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.- Returns:
InlineQueryResultLocation
-
inputMessageContent
Optional- Parameters:
input_message_content
- Content of the message to be sent instead of the location- Returns:
InlineQueryResultLocation
-
replyMarkup
Optional- Parameters:
keyboard
-Inline keyboard
attached to the message- Returns:
InlineQueryResultLocation
-
thumbnailUrl
Optional- Parameters:
thumbnail_url
- Url of the thumbnail for the result- Returns:
InlineQueryResultLocation
-
thumbnailWidth
Optional- Parameters:
thumbnail_width
- Thumbnail width- Returns:
InlineQueryResultLocation
-
thumbnailHeight
Optional- Parameters:
thumbnail_height
- Thumbnail height- Returns:
InlineQueryResultLocation
-