Class InlineQueryResultVideo
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultVideo
-
public class InlineQueryResultVideo extends InlineQueryResult
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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultVideo()
InlineQueryResultVideo(String videoUrl, String mimeType, String messageText, ParseMode parseMode, Boolean disableWebPagePreview, Integer videoWidth, Integer videoHeight, Integer videoDuration, String thumbUrl, String title, String description, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
InlineQueryResultVideo(String videoUrl, String mimeType, String messageText, String thumbUrl, String title)
-
-
-
Constructor Detail
-
InlineQueryResultVideo
public InlineQueryResultVideo()
-
InlineQueryResultVideo
public InlineQueryResultVideo(String videoUrl, String mimeType, String messageText, String thumbUrl, String title)
- Parameters:
videoUrl
- A valid URL for the embedded video player or video filemimeType
- Mime type of the content of video url, “text/html” or “video/mp4”messageText
- Text of the message to be sent with the video, 1-512 charactersthumbUrl
- URL of the thumbnail (jpeg only) for the videotitle
- Title for the result
-
InlineQueryResultVideo
public InlineQueryResultVideo(String videoUrl, String mimeType, String messageText, ParseMode parseMode, Boolean disableWebPagePreview, Integer videoWidth, Integer videoHeight, Integer videoDuration, String thumbUrl, String title, String description, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
videoUrl
- A valid URL for the embedded video player or video filemimeType
- Mime type of the content of video url, “text/html” or “video/mp4”messageText
- Text of the message to be sent with the video, 1-512 charactersparseMode
- Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot's message.disableWebPagePreview
- Optional. Disables link previews for links in the sent messagevideoWidth
- Optional. Video widthvideoHeight
- Optional. Video heightvideoDuration
- Optional. Video duration in secondsthumbUrl
- URL of the thumbnail (jpeg only) for the videotitle
- Title for the resultdescription
- Optional. Short description of the resultreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-