diff options
author | YJBeetle <yjbeetle@gmail.com> | 2019-11-12 23:11:17 +0800 |
---|---|---|
committer | YJBeetle <yjbeetle@gmail.com> | 2019-11-12 23:11:17 +0800 |
commit | 9caa6efaf13214613f21e11f5e1536b4ab05c6d6 (patch) | |
tree | e1a52452ceea2e09d8dc357ddde99801c463b71b /include | |
parent | 46e2feabcdd8ed01c6291526373124ce8d01a295 (diff) |
update api addStickerToSet: remove title
https://core.telegram.org/bots/api#addstickertoset
Diffstat (limited to 'include')
-rw-r--r-- | include/tgbot/Api.h | 3 |
1 files changed, 1 insertions, 2 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; /** |