Class InlineQueryResultLocation
java.lang.Object
org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultLocation
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
,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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from interface org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResult
VALIDTHUMBTYPES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Use {#getThumbnailUrl()
}Deprecated.Use {#getThumbnailWidth()
}void
setThumbHeight
(Integer thumbHeight) Deprecated.Use {#setThumbnailHeight(Integer)
}void
setThumbUrl
(String thumbUrl) Deprecated.Use {#setThumbnailUrl(String)
}void
setThumbWidth
(Integer thumbWidth) Deprecated.Use {#setThumbnailWidth(Integer)
}void
validate()
Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
InlineQueryResultLocation
public InlineQueryResultLocation()
-
-
Method Details
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
getThumbUrl
Deprecated.Use {#getThumbnailUrl()
} -
setThumbUrl
Deprecated.Use {#setThumbnailUrl(String)
} -
getThumbWidth
Deprecated.Use {#getThumbnailWidth()
} -
setThumbWidth
Deprecated.Use {#setThumbnailWidth(Integer)
} -
getThumbHeight
Deprecated.Use {#getThumbnailHeight()
} -
setThumbHeight
Deprecated.Use {#setThumbnailHeight(Integer)
}
-
#getThumbnailHeight()
}