Class InlineQueryResultCachedPhoto
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedPhoto
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedPhoto
public class InlineQueryResultCachedPhoto extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedPhoto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaption()StringgetDescription()StringgetId()InputMessageContentgetInputMessageContent()StringgetParseMode()StringgetPhotoFileId()InlineKeyboardMarkupgetReplyMarkup()StringgetTitle()StringgetType()InlineQueryResultCachedPhotosetCaption(String caption)InlineQueryResultCachedPhotosetDescription(String description)InlineQueryResultCachedPhotosetId(String id)InlineQueryResultCachedPhotosetInputMessageContent(InputMessageContent inputMessageContent)InlineQueryResultCachedPhotosetParseMode(String parseMode)InlineQueryResultCachedPhotosetPhotoFileId(String photoFileId)InlineQueryResultCachedPhotosetReplyMarkup(InlineKeyboardMarkup replyMarkup)InlineQueryResultCachedPhotosetTitle(String title)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedPhoto setId(String id)
-
getPhotoFileId
public String getPhotoFileId()
-
setPhotoFileId
public InlineQueryResultCachedPhoto setPhotoFileId(String photoFileId)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultCachedPhoto setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultCachedPhoto setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedPhoto setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedPhoto setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedPhoto setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedPhoto setParseMode(String parseMode)
-
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
-
-