From de33e2e08049c3698920789f769b7f361414f4b0 Mon Sep 17 00:00:00 2001 From: Andrea Giove Date: Tue, 29 Mar 2016 17:13:38 +0200 Subject: Edited answerInlineQuery --- include/tgbot/Api.h | 2 +- src/Api.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 22dbe30..66f41b5 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -243,7 +243,7 @@ public: * @param nextOffset Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes. */ void answerInlineQuery(const std::string& inlineQueryId, const std::vector& results, - int32_t cacheTime=300, bool isPersonal=false, const std::string& nextOffset=""); + int32_t cacheTime=300, bool isPersonal=false, const std::string& nextOffset="") const; private: boost::property_tree::ptree sendRequest(const std::string& method, const std::vector& args = std::vector()) const; 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& results, - int32_t cacheTime, bool isPersonal, const std::string& nextOffset){ + int32_t cacheTime, bool isPersonal, const std::string& nextOffset) const { vector args; args.push_back(HttpReqArg("inline_query_id", inlineQueryId)); string resultsJson = TgTypeParser::getInstance().parseArray(&TgTypeParser::parseInlineQueryResult, results); -- cgit v1.2.3