Sha256: 5266ac9ec522abeaf20c1323e8c105f479c1986cc9ad82c9146cc009233bbcfe

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

module TD::Types
  # Describes a video file.
  #
  # @attr duration [Integer] Duration of the video, in seconds; as defined by the sender.
  # @attr width [Integer] Video width; as defined by the sender.
  # @attr height [Integer] Video height; as defined by the sender.
  # @attr file_name [String] Original name of the file; as defined by the sender.
  # @attr mime_type [String] MIME type of the file; as defined by the sender.
  # @attr has_stickers [Boolean] True, if stickers were added to the photo.
  # @attr supports_streaming [Boolean] True, if the video should be tried to be streamed.
  # @attr minithumbnail [TD::Types::Minithumbnail, nil] Video minithumbnail; may be null.
  # @attr thumbnail [TD::Types::PhotoSize, nil] Video thumbnail; as defined by the sender; may be null.
  # @attr video [TD::Types::File] File containing the video.
  class Video < Base
    attribute :duration, TD::Types::Integer
    attribute :width, TD::Types::Integer
    attribute :height, TD::Types::Integer
    attribute :file_name, TD::Types::String
    attribute :mime_type, TD::Types::String
    attribute :has_stickers, TD::Types::Bool
    attribute :supports_streaming, TD::Types::Bool
    attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
    attribute :thumbnail, TD::Types::PhotoSize.optional.default(nil)
    attribute :video, TD::Types::File
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdlib-ruby-2.1.0 lib/tdlib/types/video.rb