Class InlineQueryResultPhoto
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultPhoto
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultPhoto extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultPhoto()
-
Method Summary
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultPhoto setId(String id)
-
getPhotoUrl
public String getPhotoUrl()
-
setPhotoUrl
public InlineQueryResultPhoto setPhotoUrl(String photoUrl)
-
getMimeType
public String getMimeType()
-
setMimeType
public InlineQueryResultPhoto setMimeType(String mimeType)
-
getPhotoWidth
public Integer getPhotoWidth()
-
setPhotoWidth
public InlineQueryResultPhoto setPhotoWidth(Integer photoWidth)
-
getPhotoHeight
public Integer getPhotoHeight()
-
setPhotoHeight
public InlineQueryResultPhoto setPhotoHeight(Integer photoHeight)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultPhoto setThumbUrl(String thumbUrl)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultPhoto setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultPhoto setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultPhoto setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultPhoto setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultPhoto setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultPhoto 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
-
-