From d47ee877be5d1175bdc36f2d87881ddaf875a8e9 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Mon, 23 Jul 2018 01:56:42 +0300 Subject: Refactor http clients, fix webhook server, add more samples, change tabs to 4 spaces --- src/types/InputFile.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/types') 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()); - result->data = FileTools::read(filePath); - result->mimeType = mimeType; - result->fileName = StringTools::split(filePath, '/').back(); - return result; + auto result(make_shared()); + result->data = FileTools::read(filePath); + result->mimeType = mimeType; + result->fileName = StringTools::split(filePath, '/').back(); + return result; } }; -- cgit v1.2.3