Class: Telegrammer::DataTypes::Document

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#file_idString

Unique file identifier

Returns:

  • (String)

    the current value of file_id



12
13
14
# File 'lib/telegrammer/data_types/document.rb', line 12

def file_id
  @file_id
end

#file_nameString

Optional. Original filename as defined by sender

Returns:

  • (String)

    the current value of file_name



12
13
14
# File 'lib/telegrammer/data_types/document.rb', line 12

def file_name
  @file_name
end

#file_sizeString

Optional. File size

Returns:

  • (String)

    the current value of file_size



12
13
14
# File 'lib/telegrammer/data_types/document.rb', line 12

def file_size
  @file_size
end

#mime_typeString

Optional. MIME type of the file as defined by sender

Returns:

  • (String)

    the current value of mime_type



12
13
14
# File 'lib/telegrammer/data_types/document.rb', line 12

def mime_type
  @mime_type
end

#thumbTelegrammer::DataTypes::PhotoSize

Document thumbnail as defined by sender

Returns:



12
13
14
# File 'lib/telegrammer/data_types/document.rb', line 12

def thumb
  @thumb
end