|
tgbot-cpp
|
This object represents the contents of a file to be uploaded. More...
#include <InputFile.h>
Public Types | |
| using | Ptr = std::shared_ptr<InputFile> |
Static Public Member Functions | |
| static std::shared_ptr< InputFile > | fromFile (const std::string &filePath, const std::string &mimeType) |
| Creates new std::shared_ptr<InputFile> 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 15 of file InputFile.h.
| using TgBot::InputFile::Ptr = std::shared_ptr<InputFile> |
Definition at line 17 of file InputFile.h.
|
static |
Creates new std::shared_ptr<InputFile> from an existing file.
| std::string TgBot::InputFile::data |
Contents of a file.
Definition at line 22 of file InputFile.h.
| std::string TgBot::InputFile::fileName |
File name.
Definition at line 32 of file InputFile.h.
| std::string TgBot::InputFile::mimeType |
Mime type of a file.
Definition at line 27 of file InputFile.h.