Class: TD::Types::Audio
- Defined in:
- lib/tdlib/types/audio.rb
Overview
Describes an audio file. Audio is usually in MP3 or M4A format.
Instance Attribute Summary collapse
-
#album_cover_minithumbnail ⇒ TD::Types::Minithumbnail?
The minithumbnail of the album cover; may be null.
-
#album_cover_thumbnail ⇒ TD::Types::Thumbnail?
The thumbnail of the album cover in JPEG format; as defined by the sender.
-
#audio ⇒ TD::Types::File
File containing the audio.
-
#duration ⇒ Integer
Duration of the audio, in seconds; as defined by the sender.
-
#external_album_covers ⇒ Array<TD::Types::Thumbnail>
Album cover variants to use if the downloaded audio file contains no album cover.
-
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
-
#mime_type ⇒ TD::Types::String
The MIME type of the file; as defined by the sender.
-
#performer ⇒ TD::Types::String
Performer of the audio; as defined by the sender.
-
#title ⇒ TD::Types::String
Title of the audio; as defined by the sender.
Method Summary
Methods inherited from Base
Instance Attribute Details
#album_cover_minithumbnail ⇒ TD::Types::Minithumbnail?
The minithumbnail of the album cover; may be null.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def album_cover_minithumbnail @album_cover_minithumbnail end |
#album_cover_thumbnail ⇒ TD::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.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def album_cover_thumbnail @album_cover_thumbnail end |
#audio ⇒ TD::Types::File
File containing the audio.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def audio @audio end |
#duration ⇒ Integer
Duration of the audio, in seconds; as defined by the sender.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def duration @duration end |
#external_album_covers ⇒ Array<TD::Types::Thumbnail>
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def external_album_covers @external_album_covers end |
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def file_name @file_name end |
#mime_type ⇒ TD::Types::String
The MIME type of the file; as defined by the sender.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def mime_type @mime_type end |
#performer ⇒ TD::Types::String
Performer of the audio; as defined by the sender.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def performer @performer end |
#title ⇒ TD::Types::String
Title of the audio; as defined by the sender.
18 19 20 |
# File 'lib/tdlib/types/audio.rb', line 18 def title @title end |