Video

public struct Video : Codable, Equatable, FunctionResult

Describes a video file

  • Duration of the video, in seconds; as defined by the sender

    Declaration

    Swift

    public let duration: Int32
  • Video width; as defined by the sender

    Declaration

    Swift

    public let width: Int32
  • Video height; as defined by the sender

    Declaration

    Swift

    public let height: Int32
  • Original name of the file; as defined by the sender

    Declaration

    Swift

    public let fileName: String
  • MIME type of the file; as defined by the sender

    Declaration

    Swift

    public let mimeType: String
  • True, if stickers were added to the video

    Declaration

    Swift

    public let hasStickers: Bool
  • True, if the video should be tried to be streamed

    Declaration

    Swift

    public let supportsStreaming: Bool
  • Video minithumbnail; may be null

    Declaration

    Swift

    public let minithumbnail: Minithumbnail?
  • Video thumbnail; as defined by the sender; may be null

    Declaration

    Swift

    public let thumbnail: PhotoSize?
  • File containing the video

    Declaration

    Swift

    public let video: File
  • Describes a video file

    Declaration

    Swift

    public init(duration: Int32, width: Int32, height: Int32, fileName: String, mimeType: String, hasStickers: Bool, supportsStreaming: Bool, minithumbnail: Minithumbnail?, thumbnail: PhotoSize?, video: File)

    Parameters

    duration

    Duration of the video, in seconds; as defined by the sender

    width

    Video width; as defined by the sender

    height

    Video height; as defined by the sender

    fileName

    Original name of the file; as defined by the sender

    mimeType

    MIME type of the file; as defined by the sender

    hasStickers

    True, if stickers were added to the video

    supportsStreaming

    True, if the video should be tried to be streamed

    minithumbnail

    Video minithumbnail; may be null

    thumbnail

    Video thumbnail; as defined by the sender; may be null

    video

    File containing the video