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