Class: Telegrammer::DataTypes::File
- Defined in:
- lib/telegrammer/data_types/file.rb
Overview
Telegram File data type.
See more at core.telegram.org/bots/api#file
Instance Attribute Summary collapse
-
#file_id ⇒ String
Unique identifier for this file.
-
#file_path ⇒ String
Optional.
-
#file_size ⇒ Integer
Optional.
Instance Attribute Details
#file_id ⇒ String
Unique identifier for this file
10 11 12 |
# File 'lib/telegrammer/data_types/file.rb', line 10 def file_id @file_id end |
#file_path ⇒ String
Optional. File path. Use api.telegram.org/file/bot<token>/<file_path> to get the file.
10 11 12 |
# File 'lib/telegrammer/data_types/file.rb', line 10 def file_path @file_path end |
#file_size ⇒ Integer
Optional. File size, if known
10 11 12 |
# File 'lib/telegrammer/data_types/file.rb', line 10 def file_size @file_size end |