summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYJBeetle <yjbeetle@gmail.com>2019-11-12 20:59:24 +0800
committerYJBeetle <yjbeetle@gmail.com>2019-11-12 20:59:24 +0800
commit46e2feabcdd8ed01c6291526373124ce8d01a295 (patch)
tree0b6550cf960e8bf23614a78f9140ad02805df5b0 /src
parentf239eef1eb7e7145bf8eddbeb7e496f266101723 (diff)
update api and fix
https://core.telegram.org/bots/api#deletestickerfromset
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 6b41947..5e41551 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -362,11 +362,11 @@ bool Api::setStickerPositionInSet(const string& sticker, uint32_t position) cons
return sendRequest("setStickerPositionInSet", args).get<bool>("", false);
}
-bool Api::deleteStickerPositionInSet(const string& sticker) const {
+bool Api::deleteStickerFromSet(const string& sticker) const {
vector<HttpReqArg> args;
args.reserve(1);
args.emplace_back("sticker", sticker);
- return sendRequest("setStickerPositionInSet", args).get<bool>("", false);
+ return sendRequest("deleteStickerFromSet", args).get<bool>("", false);
}
Message::Ptr Api::sendVideo(int64_t chatId, const boost::variant<InputFile::Ptr, std::string> video, bool supportsStreaming, int32_t duration, int32_t width, int32_t height, const boost::variant<InputFile::Ptr, std::string> thumb, const string &caption, int32_t replyToMessageId, const GenericReply::Ptr replyMarkup, const string& parseMode, bool disableNotification) const {