Add self-standing add_sticker_set.
GitOrigin-RevId: a6bf3d0e63601307f79e6acce8fd501f2081704b
This commit is contained in:
parent
c6c82220a4
commit
f1c0ee7134
@ -4536,4 +4536,8 @@ void on_sent_message_content(Td *td, const MessageContent *content) {
|
||||
}
|
||||
}
|
||||
|
||||
int64 add_sticker_set(Td *td, tl_object_ptr<telegram_api::InputStickerSet> &&input_sticker_set) {
|
||||
return td->stickers_manager_->add_sticker_set(std::move(input_sticker_set));
|
||||
}
|
||||
|
||||
} // namespace td
|
||||
|
@ -221,8 +221,10 @@ string get_message_content_search_text(const Td *td, const MessageContent *conte
|
||||
|
||||
void update_expired_message_content(unique_ptr<MessageContent> &content);
|
||||
|
||||
void on_sent_message_content(Td *td, const MessageContent *content);
|
||||
|
||||
void add_message_content_dependencies(Dependencies &dependencies, const MessageContent *message_content);
|
||||
|
||||
void on_sent_message_content(Td *td, const MessageContent *content);
|
||||
|
||||
int64 add_sticker_set(Td *td, tl_object_ptr<telegram_api::InputStickerSet> &&input_sticker_set);
|
||||
|
||||
} // namespace td
|
||||
|
@ -20296,8 +20296,8 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionChangeStickerSet::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeStickerSet>(action_ptr);
|
||||
auto old_sticker_set_id = td_->stickers_manager_->add_sticker_set(std::move(action->prev_stickerset_));
|
||||
auto new_sticker_set_id = td_->stickers_manager_->add_sticker_set(std::move(action->new_stickerset_));
|
||||
auto old_sticker_set_id = add_sticker_set(td_, std::move(action->prev_stickerset_));
|
||||
auto new_sticker_set_id = add_sticker_set(td_, std::move(action->new_stickerset_));
|
||||
return make_tl_object<td_api::chatEventStickerSetChanged>(old_sticker_set_id, new_sticker_set_id);
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionTogglePreHistoryHidden::ID: {
|
||||
|
Loading…
Reference in New Issue
Block a user