#ifndef TGBOT_CPP_INPUTFILE_H #define TGBOT_CPP_INPUTFILE_H #include "tgbot/export.h" #include #include namespace TgBot { /** * @brief This object represents the contents of a file to be uploaded. * * @ingroup types */ class TGBOT_API InputFile { public: typedef std::shared_ptr Ptr; /** * @brief Contents of a file. */ std::string data; /** * @brief Mime type of a file. */ std::string mimeType; /** * @brief File name. */ std::string fileName; /** * @brief Creates new InputFile::Ptr from an existing file. */ static InputFile::Ptr fromFile(const std::string& filePath, const std::string& mimeType); }; } #endif //TGBOT_CPP_INPUTFILE_H