summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYJBeetle <yjbeetle@gmail.com>2019-11-12 23:11:17 +0800
committerYJBeetle <yjbeetle@gmail.com>2019-11-12 23:11:17 +0800
commit9caa6efaf13214613f21e11f5e1536b4ab05c6d6 (patch)
treee1a52452ceea2e09d8dc357ddde99801c463b71b /src
parent46e2feabcdd8ed01c6291526373124ce8d01a295 (diff)
update api addStickerToSet: remove title
https://core.telegram.org/bots/api#addstickertoset
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp3
1 files changed, 1 insertions, 2 deletions
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);