summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-27 22:23:14 +0900
committerJellyBrick <shlee1503@naver.com>2018-05-27 22:23:14 +0900
commit6d365b8b555e7d1f6b32ba8b87bea8a593021cc2 (patch)
tree43c4b8a95de1a502b5d453d1831762f0648b11f2
parent94f8360629909e93e82417085db8381791c95c7b (diff)
Fix build error (no matching function)
-rw-r--r--include/tgbot/Api.h2
-rw-r--r--src/TgTypeParser.cpp2
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;