summaryrefslogtreecommitdiff
path: root/src/Api.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-06-08 15:30:58 +0900
committerJellyBrick <shlee1503@naver.com>2018-06-08 15:30:58 +0900
commitb853b778c715d090dc321f3a977bf477947befcf (patch)
tree0a892caa195f6e00d737f0e2912e1da9852214aa /src/Api.cpp
parent237684cfd042917a26274872c4ffe1e3cdd5c3a8 (diff)
Fix compilation error
Diffstat (limited to 'src/Api.cpp')
-rw-r--r--src/Api.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 8e06951..125d0f8 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -35,7 +35,7 @@ Api::Api(const string& token) : _token(token) {
}
User::Ptr Api::getMe() const {
- return TgTypeParser::getInstance().parseJsonAndGetUser(sendRequest("getMe");
+ return TgTypeParser::getInstance().parseJsonAndGetUser(sendRequest("getMe"));
}
Message::Ptr Api::sendMessage(int64_t chatId, const string& text, bool disableWebPagePreview, int32_t replyToMessageId, const GenericReply::Ptr replyMarkup, const string& parseMode, bool disableNotification) const {
@@ -635,7 +635,7 @@ UserProfilePhotos::Ptr Api::getUserProfilePhotos(int32_t userId, int32_t offset,
if (offset) {
args.emplace_back("offset", offset);
}
- limit = max(1, min(100, limit);
+ limit = max(1, min(100, limit));
args.emplace_back("limit", limit);
return TgTypeParser::getInstance().parseJsonAndGetUserProfilePhotos(sendRequest("getUserProfilePhotos", args));
}
@@ -790,7 +790,7 @@ vector<Update::Ptr> Api::getUpdates(int32_t offset, int32_t limit, int32_t timeo
if (offset) {
args.emplace_back("offset", offset);
}
- limit = max(1, min(100, limit);
+ limit = max(1, min(100, limit));
args.emplace_back("limit", limit);
if (timeout) {
args.emplace_back("timeout", timeout);