Class: Telegrammer::DataTypes::Audio
- Defined in:
- lib/telegrammer/data_types/audio.rb
Overview
Telegram Audio data type
See more at core.telegram.org/bots/api#audio
Instance Attribute Summary collapse
-
#duration ⇒ Integer
Duration of the audio in seconds as defined by sender.
-
#file_id ⇒ String
Unique identifier for this file.
-
#file_size ⇒ Integer
Optional.
-
#mime_type ⇒ String
Optional.
-
#performer ⇒ String
Optional.
-
#title ⇒ String
Optional.
Instance Attribute Details
#duration ⇒ Integer
Duration of the audio in seconds as defined by sender
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def duration @duration end |
#file_id ⇒ String
Unique identifier for this file
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def file_id @file_id end |
#file_size ⇒ Integer
Optional. File size
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def file_size @file_size end |
#mime_type ⇒ String
Optional. MIME type of the file as defined by sender
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def mime_type @mime_type end |
#performer ⇒ String
Optional. Performer of the audio as defined by sender or by audio tags
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def performer @performer end |
#title ⇒ String
Optional. Title of the audio as defined by sender or by audio tags
13 14 15 |
# File 'lib/telegrammer/data_types/audio.rb', line 13 def title @title end |