Class InlineQueryResultDocument
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultDocument
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultDocument extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a file. By default, this file 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 file.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultDocument()
-
Method Summary
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultDocument setId(String id)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultDocument setTitle(String title)
-
getDocumentUrl
public String getDocumentUrl()
-
setDocumentUrl
public InlineQueryResultDocument setDocumentUrl(String documentUrl)
-
getMimeType
public String getMimeType()
-
setMimeType
public InlineQueryResultDocument setMimeType(String mimeType)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultDocument setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultDocument setCaption(String caption)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultDocument setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultDocument setInputMessageContent(InputMessageContent inputMessageContent)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultDocument setThumbUrl(String thumbUrl)
-
getThumbWidth
public Integer getThumbWidth()
-
setThumbWidth
public InlineQueryResultDocument setThumbWidth(Integer thumbWidth)
-
getThumbHeight
public Integer getThumbHeight()
-
setThumbHeight
public InlineQueryResultDocument setThumbHeight(Integer thumbHeight)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultDocument 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
-
-