diff options
-rw-r--r-- | include/tgbot/Api.h | 2 | ||||
-rw-r--r-- | 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<InlineQueryResult::Ptr>& 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<HttpReqArg>& args = std::vector<HttpReqArg>()) 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<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); |