Class InlineQueryResultLocation
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultLocation
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultLocation extends Object implements InlineQueryResult
- Version:
- 1.0 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.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultLocation()
-
Method Summary
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultLocation setId(String id)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultLocation setTitle(String title)
-
getLatitude
public Float getLatitude()
-
setLatitude
public InlineQueryResultLocation setLatitude(Float latitude)
-
getLongitude
public Float getLongitude()
-
setLongitude
public InlineQueryResultLocation setLongitude(Float longitude)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultLocation setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultLocation setInputMessageContent(InputMessageContent inputMessageContent)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultLocation setThumbUrl(String thumbUrl)
-
getThumbWidth
public Integer getThumbWidth()
-
setThumbWidth
public InlineQueryResultLocation setThumbWidth(Integer thumbWidth)
-
getThumbHeight
public Integer getThumbHeight()
-
setThumbHeight
public InlineQueryResultLocation setThumbHeight(Integer thumbHeight)
-
getLivePeriod
public Integer getLivePeriod()
-
setLivePeriod
public InlineQueryResultLocation setLivePeriod(Integer livePeriod)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-