summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Api.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 2e3af45..d4a1c69 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -262,14 +262,11 @@ ptree Api::sendRequest(const string& method, const vector<HttpReqArg>& args) con
url += "/";
url += method;
- std::cout << "URL: " << url << std::endl;
string serverResponse = HttpClient::getInstance().makeRequest(url, args);
if (serverResponse.find("<html>") != serverResponse.npos) {
throw TgException("tgbot-cpp library have got html page instead of json response. Maybe you entered wrong bot token.");
}
- std::cout << "Server Response: " << serverResponse << std::endl;
-
ptree result = TgTypeParser::getInstance().parseJson(serverResponse);
try {
if (result.get<bool>("ok", false)) {