Class: InputFile

bot-utils~InputFile(filepath, bufferopt) → {InputFile}

new InputFile(filepath, bufferopt) → {InputFile}

A helper class for uploading file.

Parameters:
Name Type Attributes Default Description
filepath String
buffer Buffer <optional>
null

If no buffer provided it will read from file.

Source:
Returns:
Type
InputFile
Example
new InputFile(path)