Class TdApi.InputVideo

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputVideo
Enclosing class:
TdApi

public static class TdApi.InputVideo extends TdApi.Object
A video to be sent.
  • Field Details

    • video

      public TdApi.InputFile video
      Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.
    • thumbnail

      public TdApi.InputThumbnail thumbnail
      Video thumbnail; pass null to skip thumbnail uploading.
    • cover

      public TdApi.InputFile cover
      Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages.
    • startTimestamp

      public int startTimestamp
      Timestamp from which the video playing must start, in seconds.
    • addedStickerFileIds

      public int[] addedStickerFileIds
      File identifiers of the stickers added to the video, if applicable.
    • duration

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

      public int width
      Video width.
    • height

      public int height
      Video height.
    • supportsStreaming

      public boolean supportsStreaming
      True, if the video is expected to be streamed.
    • CONSTRUCTOR

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

    • InputVideo

      public InputVideo()
      A video to be sent.
    • InputVideo

      public InputVideo(TdApi.InputFile video, TdApi.InputThumbnail thumbnail, TdApi.InputFile cover, int startTimestamp, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming)
      A video to be sent.
      Parameters:
      video - Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.
      thumbnail - Video thumbnail; pass null to skip thumbnail uploading.
      cover - Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages.
      startTimestamp - Timestamp from which the video playing must start, in seconds.
      addedStickerFileIds - File identifiers of the stickers added to the video, if applicable.
      duration - Duration of the video, in seconds.
      width - Video width.
      height - Video height.
      supportsStreaming - True, if the video is expected to be streamed.
  • 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