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 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:



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def album_cover_minithumbnail
  @album_cover_minithumbnail
end

#album_cover_thumbnailTD::Types::PhotoSize?

The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def album_cover_thumbnail
  @album_cover_thumbnail
end

#audioTD::Types::File

File containing the audio.

Returns:



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def audio
  @audio
end

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def duration
  @duration
end

#file_nameString

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

Returns:

  • (String)

    the current value of file_name



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def file_name
  @file_name
end

#mime_typeString

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

Returns:

  • (String)

    the current value of mime_type



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def mime_type
  @mime_type
end

#performerString

Performer of the audio; as defined by the sender.

Returns:

  • (String)

    the current value of performer



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def performer
  @performer
end

#titleString

Title of the audio; as defined by the sender.

Returns:

  • (String)

    the current value of title



14
15
16
# File 'lib/tdlib/types/audio.rb', line 14

def title
  @title
end