diff options
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/InputFile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp index 4884488..94a591b 100644 --- a/src/types/InputFile.cpp +++ b/src/types/InputFile.cpp @@ -14,11 +14,11 @@ using namespace std; namespace TgBot { InputFile::Ptr InputFile::fromFile(const string& filePath, const string& mimeType) { - auto result(make_shared<InputFile>()); - result->data = FileTools::read(filePath); - result->mimeType = mimeType; - result->fileName = StringTools::split(filePath, '/').back(); - return result; + auto result(make_shared<InputFile>()); + result->data = FileTools::read(filePath); + result->mimeType = mimeType; + result->fileName = StringTools::split(filePath, '/').back(); + return result; } }; |