Class InlineQueryResultPhoto
java.lang.Object
org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultPhoto
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
,InlineQueryResult
- Version:
- 1.0 Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
- 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.void
setThumbUrl
(String thumbUrl) Deprecated.Use {#setThumbnailUrl(String)
}void
validate()
Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
InlineQueryResultPhoto
public InlineQueryResultPhoto()
-
-
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)
}
-
#getThumbnailUrl()
}