Class InlineQueryResultCachedDocument
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedDocument
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,InputBotApiObject
,Validable
,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedDocument
public class InlineQueryResultCachedDocument extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a file stored on the Telegram servers. 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 InlineQueryResultCachedDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCaption()
String
getDescription()
String
getDocumentFileId()
String
getId()
InputMessageContent
getInputMessageContent()
String
getParseMode()
InlineKeyboardMarkup
getReplyMarkup()
String
getTitle()
String
getType()
InlineQueryResultCachedDocument
setCaption(String caption)
InlineQueryResultCachedDocument
setDescription(String description)
InlineQueryResultCachedDocument
setDocumentFileId(String documentFileId)
InlineQueryResultCachedDocument
setId(String id)
InlineQueryResultCachedDocument
setInputMessageContent(InputMessageContent inputMessageContent)
InlineQueryResultCachedDocument
setParseMode(String parseMode)
InlineQueryResultCachedDocument
setReplyMarkup(InlineKeyboardMarkup replyMarkup)
InlineQueryResultCachedDocument
setTitle(String title)
String
toString()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedDocument setId(String id)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultCachedDocument setTitle(String title)
-
getDocumentFileId
public String getDocumentFileId()
-
setDocumentFileId
public InlineQueryResultCachedDocument setDocumentFileId(String documentFileId)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultCachedDocument setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedDocument setCaption(String caption)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedDocument setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedDocument setInputMessageContent(InputMessageContent inputMessageContent)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedDocument setParseMode(String parseMode)
-
validate
public void validate() throws TelegramApiValidationException
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
-
-