Class: Telegrammer::DataTypes::File

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

Instance Attribute Details

#file_idString

Unique identifier for this file

Returns:

  • (String)

    the current value of file_id



10
11
12
# File 'lib/telegrammer/data_types/file.rb', line 10

def file_id
  @file_id
end

#file_pathString

Optional. File path. Use api.telegram.org/file/bot<token>/<file_path> to get the file.

Returns:

  • (String)

    the current value of file_path



10
11
12
# File 'lib/telegrammer/data_types/file.rb', line 10

def file_path
  @file_path
end

#file_sizeInteger

Optional. File size, if known

Returns:

  • (Integer)

    the current value of file_size



10
11
12
# File 'lib/telegrammer/data_types/file.rb', line 10

def file_size
  @file_size
end