Class: Telegrammer::DataTypes::Voice
- Defined in:
- lib/telegrammer/data_types/voice.rb
Overview
Telegram Voice data type
See more at core.telegram.org/bots/api#video
Instance Attribute Summary collapse
-
#duration ⇒ Integer
Duration of the audio in seconds as defined by sender.
-
#file_id ⇒ String
Unique file identifier.
-
#file_size ⇒ String
Optional.
-
#mime_type ⇒ String
Optional.
Instance Attribute Details
#duration ⇒ Integer
Duration of the audio in seconds as defined by sender
11 12 13 |
# File 'lib/telegrammer/data_types/voice.rb', line 11 def duration @duration end |
#file_id ⇒ String
Unique file identifier
11 12 13 |
# File 'lib/telegrammer/data_types/voice.rb', line 11 def file_id @file_id end |
#file_size ⇒ String
Optional. File size
11 12 13 |
# File 'lib/telegrammer/data_types/voice.rb', line 11 def file_size @file_size end |
#mime_type ⇒ String
Optional. Mime type of a file as defined by sender
11 12 13 |
# File 'lib/telegrammer/data_types/voice.rb', line 11 def mime_type @mime_type end |