diff options
author | JellyBrick <shlee1503@naver.com> | 2018-05-29 22:18:08 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-05-29 22:18:08 +0900 |
commit | fa662a813bc36db87a83e2eae02f598f4342240f (patch) | |
tree | 49e569fc58b107cd55b15251d56c41b574113452 /src/Api.cpp | |
parent | ad8ca77ece2b3185ca546f120dc4f7a13e602aa2 (diff) |
Fix build error (no matching function)
Diffstat (limited to 'src/Api.cpp')
-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 dfb5dcc..11349e9 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -993,7 +993,7 @@ bool Api::unpinChatMessage(int64_t chatId) const { Message::Ptr Api::setGameScore(int32_t userId, int32_t score, bool force, bool disableEditMessage, int64_t chatId, int32_t messageId, const std::string& inlineMessageId) const { vector<HttpReqArg> args; - args.push_back(HttpReqArg("user_id", user_id)); + args.push_back(HttpReqArg("user_id", userId)); args.push_back(HttpReqArg("score", score)); if (force) { args.push_back(HttpReqArg("force", force)); @@ -1002,7 +1002,7 @@ Message::Ptr Api::setGameScore(int32_t userId, int32_t score, bool force, bool d args.push_back(HttpReqArg("disable_edit_message", disableEditMessage)); } if (chatId){ - args.push_back(HttpReqArg("chat_id", chat_id)); + args.push_back(HttpReqArg("chat_id", chatId)); } if (messageId){ args.push_back(HttpReqArg("message_id", messageId)); |