From 9caa6efaf13214613f21e11f5e1536b4ab05c6d6 Mon Sep 17 00:00:00 2001 From: YJBeetle Date: Tue, 12 Nov 2019 23:11:17 +0800 Subject: update api addStickerToSet: remove title https://core.telegram.org/bots/api#addstickertoset --- include/tgbot/Api.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') 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 pngSticker, const std::string& emojis, MaskPosition::Ptr maskPosition = nullptr) const; /** -- cgit v1.2.3