diff options
-rw-r--r-- | include/tgbot/Api.h | 2 | ||||
-rw-r--r-- | 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; |