Class InlineQueryResultArticle
java.lang.Object
org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultArticle
- All Implemented Interfaces:
Serializable,BotApiObject,Validable,InlineQueryResult
- Version:
- 1.0 Represents a link to an article or web page.
- Author:
- Ruben Bermudez
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResult
VALIDTHUMBTYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Use {#getThumbnailUrl()}Deprecated.Use {#getThumbnailWidth()}voidsetThumbHeight(Integer thumbHeight) Deprecated.Use {#setThumbnailHeight(Integer)}voidsetThumbUrl(String thumbUrl) Deprecated.Use {#setThumbnailUrl(String)}voidsetThumbWidth(Integer thumbWidth) Deprecated.Use {#setThumbnailWidth(Integer)}voidvalidate()Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
InlineQueryResultArticle
public InlineQueryResultArticle()
-
-
Method Details
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein 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()}