Class InlineQueryResultVideo
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVideo
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultVideo extends Object implements InlineQueryResult
- Version:
- 1.0 Represents link to a page containing an embedded video player or a video file. 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 InlineQueryResultVideo()
-
Method Summary
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultVideo setId(String id)
-
getMimeType
public String getMimeType()
-
setMimeType
public InlineQueryResultVideo setMimeType(String mimeType)
-
getVideoUrl
public String getVideoUrl()
-
setVideoUrl
public InlineQueryResultVideo setVideoUrl(String videoUrl)
-
getVideoWidth
public Integer getVideoWidth()
-
setVideoWidth
public InlineQueryResultVideo setVideoWidth(Integer videoWidth)
-
getVideoHeight
public Integer getVideoHeight()
-
setVideoHeight
public InlineQueryResultVideo setVideoHeight(Integer videoHeight)
-
getVideoDuration
public Integer getVideoDuration()
-
setVideoDuration
public InlineQueryResultVideo setVideoDuration(Integer videoDuration)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultVideo setThumbUrl(String thumbUrl)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultVideo setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public InlineQueryResultVideo setDescription(String description)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultVideo setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultVideo setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultVideo setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultVideo 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
-
-