Sha256: 0b6f15f340ce8d1c6d2c61ac808f7cc32ad0da0e60de92388d8a5096293e867f

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

module TD::Types
  # Describes an audio file.
  # Audio is usually in MP3 or M4A format.
  #
  # @attr duration [Integer] Duration of the audio, in seconds; as defined by the sender.
  # @attr title [String] Title of the audio; as defined by the sender.
  # @attr performer [String] Performer of the audio; as defined by the sender.
  # @attr file_name [String] Original name of the file; as defined by the sender.
  # @attr mime_type [String] The MIME type of the file; as defined by the sender.
  # @attr album_cover_minithumbnail [TD::Types::Minithumbnail, nil] The minithumbnail of the album cover; may be null.
  # @attr album_cover_thumbnail [TD::Types::Thumbnail, nil] The thumbnail of the album cover in JPEG format; as defined
  #   by the sender.
  #   The full size thumbnail should be extracted from the downloaded file; may be null.
  # @attr audio [TD::Types::File] File containing the audio.
  class Audio < Base
    attribute :duration, TD::Types::Integer
    attribute :title, TD::Types::String
    attribute :performer, TD::Types::String
    attribute :file_name, TD::Types::String
    attribute :mime_type, TD::Types::String
    attribute :album_cover_minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
    attribute :album_cover_thumbnail, TD::Types::Thumbnail.optional.default(nil)
    attribute :audio, TD::Types::File
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/audio.rb