From 6d365b8b555e7d1f6b32ba8b87bea8a593021cc2 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 27 May 2018 22:23:14 +0900 Subject: Fix build error (no matching function) --- include/tgbot/Api.h | 2 +- src/TgTypeParser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index dd1805d..7a82072 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -239,7 +239,7 @@ public: * @return Returns True on success. */ bool createNewStickerSet(int32_t userId, const std::string& name, const std::string& title, - const std::string pngSticker, const std::string& emojis, bool containsMasks = false, MaskPosition::Ptr maskPosition = nullptr) const; + const std::string& pngSticker, const std::string& emojis, bool containsMasks = false, MaskPosition::Ptr maskPosition = nullptr) const; /** * Use this method to add a new sticker to a set created by the bot. diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index ff2ffe7..46760fc 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -328,7 +328,7 @@ string TgTypeParser::parseStickerSet(const StickerSet::Ptr& object) const { appendToJson(result, "name", object->name); appendToJson(result, "title", object->title); appendToJson(result, "contains_masks", object->containsMasks); - appendToJson(result, "thumb", parseArray(&TgTypeParser::parseJsonAndGetSticker, object->stickers)); + appendToJson(result, "stickers", parseArray(&TgTypeParser::parseSticker, object->stickers)); result.erase(result.length() - 1); result += '}'; return result; -- cgit v1.2.3