Class InlineQueryResultVideo

java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultVideo>
io.github.natanimn.telebof.types.inline.InlineQueryResultVideo
All Implemented Interfaces:
InlineQueryResult, Serializable

public class InlineQueryResultVideo extends InlineQueryMediaResult<InlineQueryResultVideo> implements Serializable
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use InputMessageContent to send a message with the specified content instead of the video. If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using InputMessageContent.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • videoUrl

      @SerializedName("video_url") private String videoUrl
    • description

      private String description
    • mimeType

      @SerializedName("mime_type") private String mimeType
    • thumbnailUrl

      @SerializedName("thumbnail_url") private String thumbnailUrl
    • videoWidth

      @SerializedName("video_width") private Integer videoWidth
    • videoHeight

      @SerializedName("video_height") private Integer videoHeight
    • videoDuration

      @SerializedName("video_duration") private Integer videoDuration
    • showCaptionAboveMedia

      @SerializedName("show_caption_above_media") private Boolean showCaptionAboveMedia
    • title

      private String title
  • Constructor Details

    • InlineQueryResultVideo

      public InlineQueryResultVideo(String id, String videoUrl, String mimeType, String thumbnailUrl, String title)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      videoUrl - A valid URL for the embedded video player or video file
      mimeType - MIME type of the content of the video URL, “text/html” or “video/mp4”
      thumbnailUrl - URL of the thumbnail (JPEG only) for the video
      title - Title for the result
  • Method Details