summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaveen <naveen.sanmane@gmail.com>2015-11-23 10:14:14 +0000
committerNaveen <naveen.sanmane@gmail.com>2015-11-23 10:14:14 +0000
commit03a1a5b66037df5df46a7beba980a4931f38f1a3 (patch)
tree186bd84429f9af6f5406d5a04a6fc339116f3c17 /src
parente05c5ca197d7ccac7ea20db78c1e101090ff629a (diff)
Remove cout
Diffstat (limited to 'src')
-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)) {