diff options
author | YJBeetle <yjbeetle@gmail.com> | 2019-11-12 20:59:24 +0800 |
---|---|---|
committer | YJBeetle <yjbeetle@gmail.com> | 2019-11-12 20:59:24 +0800 |
commit | 46e2feabcdd8ed01c6291526373124ce8d01a295 (patch) | |
tree | 0b6550cf960e8bf23614a78f9140ad02805df5b0 /src | |
parent | f239eef1eb7e7145bf8eddbeb7e496f266101723 (diff) |
update api and fix
https://core.telegram.org/bots/api#deletestickerfromset
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.cpp | 4 |
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 { |