summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Giove <andreagiove@outlook.com>2016-03-29 17:13:38 +0200
committerAndrea Giove <andreagiove@outlook.com>2016-03-29 17:13:38 +0200
commitde33e2e08049c3698920789f769b7f361414f4b0 (patch)
tree8efe115007bab8b4487600101c408a0ca2d284af /src
parentc5a4f537b4a11455d1924ae737a92a8f16b2fcd7 (diff)
Edited answerInlineQuery
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 325978f..ed06d27 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -256,7 +256,7 @@ void Api::setWebhook(const string& url) const {
}
void Api::answerInlineQuery(const std::string& inlineQueryId, const std::vector<InlineQueryResult::Ptr>& results,
- int32_t cacheTime, bool isPersonal, const std::string& nextOffset){
+ int32_t cacheTime, bool isPersonal, const std::string& nextOffset) const {
vector<HttpReqArg> args;
args.push_back(HttpReqArg("inline_query_id", inlineQueryId));
string resultsJson = TgTypeParser::getInstance().parseArray<InlineQueryResult>(&TgTypeParser::parseInlineQueryResult, results);