Class InlineQueryResultLocation
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultLocation
-
public class InlineQueryResultLocation extends InlineQueryResult
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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultLocation()
InlineQueryResultLocation(String title, Float latitude, Float longitude)
InlineQueryResultLocation(String title, Float latitude, Float longitude, String thumbUrl, Integer thumbWidth, Integer thumbHeight, Integer livePeriod, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultLocation
public InlineQueryResultLocation()
-
InlineQueryResultLocation
public InlineQueryResultLocation(String title, Float latitude, Float longitude)
- Parameters:
title
- Location titlelatitude
- Location latitude in degreeslongitude
- Location longitude in degrees
-
InlineQueryResultLocation
public InlineQueryResultLocation(String title, Float latitude, Float longitude, String thumbUrl, Integer thumbWidth, Integer thumbHeight, Integer livePeriod, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
title
- Location titlelatitude
- Location latitude in degreeslongitude
- Location longitude in degreesthumbUrl
- Optional. URL of the thumbnail (jpeg only) for the filethumbWidth
- Optional. Thumbnail widththumbHeight
- Optional. Thumbnail heightlivePeriod
- Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.replyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-