diff options
author | Florian Scheibner <flo.de@hotmail.de> | 2015-11-12 14:27:07 +0100 |
---|---|---|
committer | Florian Scheibner <flo.de@hotmail.de> | 2015-11-12 14:27:07 +0100 |
commit | 4c34c9623735cdd7d11c333e54ad8723abb1be8b (patch) | |
tree | a94eddd9bfd36030b7864b3af4b437996cc6709c /src/Api.cpp | |
parent | 7179cc9bd0d43bf0cf645bcb3247c1183dd8c818 (diff) |
Fix getMessages call
do not request "result" subitem twice
Diffstat (limited to 'src/Api.cpp')
-rw-r--r-- | src/Api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index 7e05621..9c8259f 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -246,7 +246,7 @@ vector<Update::Ptr> Api::getUpdates(int32_t offset, int32_t limit, int32_t timeo if (timeout) { args.push_back(HttpReqArg("timeout", timeout)); } - return TgTypeParser::getInstance().parseJsonAndGetArray<Update>(&TgTypeParser::parseJsonAndGetUpdate, sendRequest("getUpdates", args), "result"); + return TgTypeParser::getInstance().parseJsonAndGetArray<Update>(&TgTypeParser::parseJsonAndGetUpdate, sendRequest("getUpdates", args)); } void Api::setWebhook(const string& url) const { |