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:



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

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 should be extracted from the downloaded file; may be null.

Returns:



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

def album_cover_thumbnail
  @album_cover_thumbnail
end

#audioTD::Types::File

File containing the audio.

Returns:



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

def audio
  @audio
end

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



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

def duration
  @duration
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



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

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



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

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



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

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



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

def title
  @title
end