From df1e95a57d4fa3145da3c81a9dd3d75fc60d033f Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 19 Oct 2023 14:16:33 +0300 Subject: [PATCH] Mark that td_api::getDefault*Stickers are allowed only for users. --- td/telegram/Td.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index b4a273f12..562bd7bd1 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -7975,11 +7975,13 @@ void Td::on_request(uint64 id, const td_api::getCustomEmojiStickers &request) { } void Td::on_request(uint64 id, const td_api::getDefaultChatPhotoCustomEmojiStickers &request) { + CHECK_IS_USER(); CREATE_REQUEST_PROMISE(); stickers_manager_->get_default_dialog_photo_custom_emoji_stickers(false, false, std::move(promise)); } void Td::on_request(uint64 id, const td_api::getDefaultProfilePhotoCustomEmojiStickers &request) { + CHECK_IS_USER(); CREATE_REQUEST_PROMISE(); stickers_manager_->get_default_dialog_photo_custom_emoji_stickers(true, false, std::move(promise)); }