class Audio
Monday,
August
24
2020
This object represents an audio file to be treated as music by the Telegram
clients.¶ ↑
Public Instance Methods
duration()
click to toggle source
Duration of the audio in seconds as defined by sender.
# File lib/objects/audio.rb, line 16 def duration @obj.duration end
performer()
click to toggle source
Optional.
Performer of the audio as defined by sender or by audio tags.
# File lib/objects/audio.rb, line 21 def performer @obj.performer end
thumb()
click to toggle source
Optional.
Thumbnail of the album cover to which the music file belongs.
# File lib/objects/audio.rb, line 31 def thumb data = @obj.thumb return PhotoSize.new(data) if data false end
title()
click to toggle source
Optional
. Title of the audio as defined by sender or by audio tags
# File lib/objects/audio.rb, line 26 def title @obj.title end