diff options
-rw-r--r-- | include/tgbot/Api.h | 3 | ||||
-rw-r--r-- | src/Api.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 51c28e7..ec9edf8 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -251,13 +251,12 @@ public: * @brief Use this method to add a new sticker to a set created by the bot. * @param userId User identifier of created sticker set owner. * @param name Sticker set name. - * @param title Sticker set title, 1-64 characters. * @param pngSticker Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. * @param emojis One or more emoji corresponding to the sticker. * @param maskPosition Optional. A JSON-serialized object for position where the mask should be placed on faces. * @return Returns True on success. */ - bool addStickerToSet(int32_t userId, const std::string& name, const std::string& title, + bool addStickerToSet(int32_t userId, const std::string& name, boost::variant<InputFile::Ptr, std::string> pngSticker, const std::string& emojis, MaskPosition::Ptr maskPosition = nullptr) const; /** diff --git a/src/Api.cpp b/src/Api.cpp index 5e41551..9996108 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -335,12 +335,11 @@ bool Api::createNewStickerSet(int32_t userId, const string& name, const string& return sendRequest("createNewStickerSet", args).get<bool>("", false); } -bool Api::addStickerToSet(int32_t userId, const string& name, const string& title, const boost::variant<InputFile::Ptr, std::string> pngSticker, const string& emojis, MaskPosition::Ptr maskPosition) const { +bool Api::addStickerToSet(int32_t userId, const string& name, const boost::variant<InputFile::Ptr, std::string> pngSticker, const string& emojis, MaskPosition::Ptr maskPosition) const { vector<HttpReqArg> args; args.reserve(6); args.emplace_back("user_id", userId); args.emplace_back("name", name); - args.emplace_back("title", title); if (pngSticker.which() == 0 /* InputFile::Ptr */) { auto file = boost::get<InputFile::Ptr>(pngSticker); args.emplace_back("png_sticker", file->data, true, file->mimeType, file->fileName); |