Sha256: 237bd7ced673e5ec7982aaf2e688664706ad96f48ae958521627f4b0eacb1f20

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 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 [TD::Types::String] Title of the audio; as defined by the sender.
  # @attr performer [TD::Types::String] Performer of the audio; as defined by the sender.
  # @attr file_name [TD::Types::String] Original name of the file; as defined by the sender.
  # @attr mime_type [TD::Types::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::Coercible::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

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/audio.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/audio.rb