Class: Telegram::Bot::Types::Voice
- Defined in:
- sig/telegram/bot/types/voice.rbs
Instance Attribute Summary collapse
-
#duration ⇒ Integer
readonly
Returns the value of attribute duration.
-
#file_id ⇒ String
readonly
Returns the value of attribute file_id.
-
#file_size ⇒ Integer?
readonly
Returns the value of attribute file_size.
-
#file_unique_id ⇒ String
readonly
Returns the value of attribute file_unique_id.
-
#mime_type ⇒ String?
readonly
Returns the value of attribute mime_type.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#duration ⇒ Integer (readonly)
Returns the value of attribute duration.
10 11 12 |
# File 'sig/telegram/bot/types/voice.rbs', line 10 def duration @duration end |
#file_id ⇒ String (readonly)
Returns the value of attribute file_id.
8 9 10 |
# File 'sig/telegram/bot/types/voice.rbs', line 8 def file_id @file_id end |
#file_size ⇒ Integer? (readonly)
Returns the value of attribute file_size.
12 13 14 |
# File 'sig/telegram/bot/types/voice.rbs', line 12 def file_size @file_size end |
#file_unique_id ⇒ String (readonly)
Returns the value of attribute file_unique_id.
9 10 11 |
# File 'sig/telegram/bot/types/voice.rbs', line 9 def file_unique_id @file_unique_id end |
#mime_type ⇒ String? (readonly)
Returns the value of attribute mime_type.
11 12 13 |
# File 'sig/telegram/bot/types/voice.rbs', line 11 def mime_type @mime_type end |
Class Method Details
.new(file_id:, file_unique_id:, duration:, mime_type:, file_size:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/voice.rbs', line 6
def self.new: (file_id: String, file_unique_id: String, duration: Integer, ?mime_type: String, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|