Class TdApi.LinkPreviewTypeEmbeddedVideoPlayer

Enclosing class:
TdApi

public static class TdApi.LinkPreviewTypeEmbeddedVideoPlayer extends TdApi.LinkPreviewType
The link is a link to a video player.
  • Field Details

    • url

      public String url
      URL of the external video player.
    • thumbnail

      public TdApi.Photo thumbnail
      Thumbnail of the video; may be null if unknown.
    • duration

      public int duration
      Duration of the video, in seconds.
    • author

      public String author
      Author of the video.
    • width

      public int width
      Expected width of the embedded player.
    • height

      public int height
      Expected height of the embedded player.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • LinkPreviewTypeEmbeddedVideoPlayer

      public LinkPreviewTypeEmbeddedVideoPlayer()
      The link is a link to a video player.
    • LinkPreviewTypeEmbeddedVideoPlayer

      public LinkPreviewTypeEmbeddedVideoPlayer(String url, TdApi.Photo thumbnail, int duration, String author, int width, int height)
      The link is a link to a video player.
      Parameters:
      url - URL of the external video player.
      thumbnail - Thumbnail of the video; may be null if unknown.
      duration - Duration of the video, in seconds.
      author - Author of the video.
      width - Expected width of the embedded player.
      height - Expected height of the embedded player.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR