tgbot-cpp
|
This object represents the contents of a file to be uploaded. More...
#include <InputFile.h>
Public Types | |
typedef std::shared_ptr< InputFile > | Ptr |
Static Public Member Functions | |
static InputFile::Ptr | fromFile (const std::string &filePath, const std::string &mimeType) |
Creates new InputFile::Ptr from an existing file. | |
Public Attributes | |
std::string | data |
Contents of a file. | |
std::string | mimeType |
Mime type of a file. | |
std::string | fileName |
File name. | |
This object represents the contents of a file to be uploaded.
Definition at line 16 of file InputFile.h.
typedef std::shared_ptr<InputFile> TgBot::InputFile::Ptr |
Definition at line 19 of file InputFile.h.
|
static |
Creates new InputFile::Ptr from an existing file.
std::string TgBot::InputFile::data |
Contents of a file.
Definition at line 24 of file InputFile.h.
std::string TgBot::InputFile::fileName |
File name.
Definition at line 34 of file InputFile.h.
std::string TgBot::InputFile::mimeType |
Mime type of a file.
Definition at line 29 of file InputFile.h.