Class: Telebot::InputFile
- Inherits:
-
Faraday::UploadIO
- Object
- Faraday::UploadIO
- Telebot::InputFile
- 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
-
#initialize(file_path, mime_type = DEFAULT_MIME_TYPE) ⇒ InputFile
constructor
A new instance of InputFile.
Constructor Details
#initialize(file_path, mime_type = DEFAULT_MIME_TYPE) ⇒ InputFile
Returns a new instance of InputFile.
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 |