diff options
-rw-r--r-- | src/Api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index 125d0f8..84fda2d 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -1055,10 +1055,10 @@ ptree Api::sendRequest(const string& method, const vector<HttpReqArg>& args) con if (result.get<bool>("ok", false)) { return result.get_child("result"); } else { - throw TgException(result.get("description", ""); + throw TgException(result.get("description", "")); } } catch (boost::property_tree::ptree_error& e) { - throw TgException("tgbot-cpp library can't parse json response. " + string(e.what()); + throw TgException("tgbot-cpp library can't parse json response. " + string(e.what())); } } |