Class 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.
    • 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 file
        mimeType - 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 characters
        thumbUrl - URL of the thumbnail (jpeg only) for the video
        title - 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 file
        mimeType - 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 characters
        parseMode - 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 message
        videoWidth - Optional. Video width
        videoHeight - Optional. Video height
        videoDuration - Optional. Video duration in seconds
        thumbUrl - URL of the thumbnail (jpeg only) for the video
        title - Title for the result
        description - Optional. Short description of the result
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message