Class: Telebot::InputFile

Inherits:
Faraday::UploadIO
  • Object
show all
Defined in:
lib/telebot/objects/input_file.rb

Overview

Represents file that has to be sent.

Constant Summary collapse

DEFAULT_MIME_TYPE =
"application/octet-stream"

Instance Method Summary collapse

Constructor Details

#initialize(file_path, mime_type = DEFAULT_MIME_TYPE) ⇒ InputFile

Returns a new instance of InputFile.

Parameters:

  • file_path (String)
  • mime_type (String) (defaults to: DEFAULT_MIME_TYPE)


8
9
10
# File 'lib/telebot/objects/input_file.rb', line 8

def initialize(file_path, mime_type = DEFAULT_MIME_TYPE)
  super(file_path, mime_type)
end