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.
-
#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.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 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 should be extracted from the downloaded file; may be null.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def album_cover_thumbnail @album_cover_thumbnail end |
#audio ⇒ TD::Types::File
File containing the audio.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def audio @audio end |
#duration ⇒ Integer
Duration of the audio, in seconds; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def duration @duration end |
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def file_name @file_name end |
#mime_type ⇒ TD::Types::String
The MIME type of the file; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def mime_type @mime_type end |
#performer ⇒ TD::Types::String
Performer of the audio; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def performer @performer end |
#title ⇒ TD::Types::String
Title of the audio; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/audio.rb', line 15 def title @title end |