diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index e504a61..a82fbd3 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -17255,28 +17255,6 @@ td::vector Client::get_message_sticker_set_ids(const MessageInfo *mes return sticker_set_ids; } -td::vector Client::get_message_sticker_set_ids(const object_ptr &message) { - if (message == nullptr) { - return {}; - } - - td::vector sticker_set_ids; - auto content_sticker_set_id = get_sticker_set_id(message->content_); - if (content_sticker_set_id != 0) { - sticker_set_ids.push_back(content_sticker_set_id); - } - if (message->reply_to_ != nullptr && message->reply_to_->get_id() == td_api::messageReplyToMessage::ID) { - const auto *reply_to_message = static_cast(message->reply_to_.get()); - if (reply_to_message->content_ != nullptr) { - auto reply_sticker_set_id = get_sticker_set_id(reply_to_message->content_); - if (reply_sticker_set_id != 0) { - sticker_set_ids.push_back(reply_sticker_set_id); - } - } - } - return sticker_set_ids; -} - td::string Client::get_sticker_set_name(int64 sticker_set_id) const { return sticker_set_names_.get(sticker_set_id); } diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 1939016..ea6b84d 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -1188,8 +1188,6 @@ class Client final : public WebhookActor::Callback { static td::vector get_message_sticker_set_ids(const MessageInfo *message_info); - static td::vector get_message_sticker_set_ids(const object_ptr &message); - td::string get_sticker_set_name(int64 sticker_set_id) const; int64 choose_added_member_id(const td_api::messageChatAddMembers *message_add_members) const;