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
setInputMessageContent(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 TypeMethodDescriptionsetHeading(Integer heading) OptionalsetHorizontalAccuracy(Float horizontalAccuracy) OptionalsetInputMessageContent(InputTextMessageContent inputMessageContent) OptionalsetLivePeriod(Integer livePeriod) OptionalsetProximityAlertRadius(Integer proximityAlertRadius) OptionalsetReplyMarkup(InlineKeyboardMarkup replyMarkup) OptionalsetThumbnailHeight(Integer thumbnailHeight) OptionalsetThumbnailUrl(String thumbnailUrl) OptionalsetThumbnailWidth(Integer thumbnailWidth) Optional
-
Constructor Details
-
InlineQueryResultLocation
Required- Parameters:
id- Unique identifier for this result, 1-64 Byteslatitude- Location latitude in degreeslongitude- Location longitude in degreestitle- Location title
-
-
Method Details
-
setHorizontalAccuracy
Optional- Parameters:
horizontalAccuracy- The radius of uncertainty for the location, measured in meters; 0-1500- Returns:
InlineQueryResultLocation
-
setLivePeriod
Optional- Parameters:
livePeriod- 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
-
setHeading
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
-
setProximityAlertRadius
Optional- Parameters:
proximityAlertRadius- 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
-
setInputMessageContent
public InlineQueryResultLocation setInputMessageContent(InputTextMessageContent inputMessageContent) Optional- Parameters:
inputMessageContent- Content of the message to be sent instead of the location- Returns:
InlineQueryResultLocation
-
setReplyMarkup
Optional- Parameters:
replyMarkup-Inline keyboardattached to the message- Returns:
InlineQueryResultLocation
-
setThumbnailUrl
Optional- Parameters:
thumbnailUrl- Url of the thumbnail for the result- Returns:
InlineQueryResultLocation
-
setThumbnailWidth
Optional- Parameters:
thumbnailWidth- Thumbnail width- Returns:
InlineQueryResultLocation
-
setThumbnailHeight
Optional- Parameters:
thumbnailHeight- Thumbnail height- Returns:
InlineQueryResultLocation
-