Class: Telegrammer::DataTypes::Document
- Defined in:
- lib/telegrammer/data_types/document.rb
Overview
Telegram Document data type
See more at core.telegram.org/bots/api#document
Instance Attribute Summary collapse
-
#file_id ⇒ String
Unique file identifier.
-
#file_name ⇒ String
Optional.
-
#file_size ⇒ String
Optional.
-
#mime_type ⇒ String
Optional.
-
#thumb ⇒ Telegrammer::DataTypes::PhotoSize
Document thumbnail as defined by sender.
Instance Attribute Details
#file_id ⇒ String
Unique file identifier
12 13 14 |
# File 'lib/telegrammer/data_types/document.rb', line 12 def file_id @file_id end |
#file_name ⇒ String
Optional. Original filename as defined by sender
12 13 14 |
# File 'lib/telegrammer/data_types/document.rb', line 12 def file_name @file_name end |
#file_size ⇒ String
Optional. File size
12 13 14 |
# File 'lib/telegrammer/data_types/document.rb', line 12 def file_size @file_size end |
#mime_type ⇒ String
Optional. MIME type of the file as defined by sender
12 13 14 |
# File 'lib/telegrammer/data_types/document.rb', line 12 def mime_type @mime_type end |
#thumb ⇒ Telegrammer::DataTypes::PhotoSize
Document thumbnail as defined by sender
12 13 14 |
# File 'lib/telegrammer/data_types/document.rb', line 12 def thumb @thumb end |