class Document

This object represents a general file (as opposed to Photo, Voice messages and Audio files).

Extend Common2 clas.

Public Instance Methods

file_name() click to toggle source

Optional. Original filename as defined by sender.

# File lib/objects/document.rb, line 17
def file_name
  @obj.file_name
end
thumb() click to toggle source
# File lib/objects/document.rb, line 21
def thumb
  data = @obj.file_name
  return PhotoSize.new(data) if data

  false
end