Class: TD::Types::Audio

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/audio.rb

Overview

Describes an audio file. Audio is usually in MP3 or M4A format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#album_cover_minithumbnailTD::Types::Minithumbnail?

The minithumbnail of the album cover; may be null.

Returns:



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def album_cover_minithumbnail
  @album_cover_minithumbnail
end

#album_cover_thumbnailTD::Types::Thumbnail?

The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null.

Returns:



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def album_cover_thumbnail
  @album_cover_thumbnail
end

#audioTD::Types::File

File containing the audio.

Returns:



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def audio
  @audio
end

#durationInteger

Duration of the audio, in seconds; as defined by the sender.

Returns:

  • (Integer)

    the current value of duration



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def duration
  @duration
end

#external_album_coversArray<TD::Types::Thumbnail>

Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.

Returns:



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def external_album_covers
  @external_album_covers
end

#file_nameTD::Types::String

Original name of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of file_name



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def file_name
  @file_name
end

#mime_typeTD::Types::String

The MIME type of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of mime_type



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def mime_type
  @mime_type
end

#performerTD::Types::String

Performer of the audio; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of performer



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def performer
  @performer
end

#titleTD::Types::String

Title of the audio; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of title



18
19
20
# File 'lib/tdlib/types/audio.rb', line 18

def title
  @title
end