Class InlineQueryResultCachedVideo
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedVideo
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedVideo
public class InlineQueryResultCachedVideo extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a video file stored on the Telegram servers. By default, this video 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 video.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedVideo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaption()StringgetDescription()StringgetId()InputMessageContentgetInputMessageContent()StringgetParseMode()InlineKeyboardMarkupgetReplyMarkup()StringgetTitle()StringgetType()StringgetVideoFileId()InlineQueryResultCachedVideosetCaption(String caption)InlineQueryResultCachedVideosetDescription(String description)InlineQueryResultCachedVideosetId(String id)InlineQueryResultCachedVideosetInputMessageContent(InputMessageContent inputMessageContent)InlineQueryResultCachedVideosetParseMode(String parseMode)InlineQueryResultCachedVideosetReplyMarkup(InlineKeyboardMarkup replyMarkup)InlineQueryResultCachedVideosetTitle(String title)InlineQueryResultCachedVideosetVideoFileId(String videoFileId)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedVideo setId(String id)
-
getVideoFileId
public String getVideoFileId()
-
setVideoFileId
public InlineQueryResultCachedVideo setVideoFileId(String videoFileId)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultCachedVideo setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultCachedVideo setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedVideo setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedVideo setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedVideo setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedVideo 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
-
-