class TFile

Monday, August 24 2020

This object represents a file ready to be downloaded.

Public Instance Methods

file_id() click to toggle source

Identifier for this file, which can be used to download or reuse the file.

# File lib/objects/file.rb, line 13
def file_id
  @file.file_id
end
file_path() click to toggle source

Optional. File path.

# File lib/objects/file.rb, line 29
def file_path
  @file.file_path
end
file_size() click to toggle source

Optional. File size, if known.

# File lib/objects/file.rb, line 24
def file_size
  @file.file_size
end
file_unique_id() click to toggle source

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

# File lib/objects/file.rb, line 19
def file_unique_id
  @file.file_unique_id
end