Allow to create emoji sticker sets.

This commit is contained in:
levlam 2023-02-08 20:01:56 +03:00
parent 91a13ea705
commit 58775c5852

View File

@ -1144,8 +1144,7 @@ class CreateNewStickerSetQuery final : public Td::ResultHandler {
flags |= telegram_api::stickers_createStickerSet::MASKS_MASK;
}
if (sticker_type == StickerType::CustomEmoji) {
// flags |= telegram_api::stickers_createStickerSet::EMOJIS_MASK;
return on_error(Status::Error(400, "Can't create custom emoji sets"));
flags |= telegram_api::stickers_createStickerSet::EMOJIS_MASK;
}
if (sticker_format == StickerFormat::Tgs) {
flags |= telegram_api::stickers_createStickerSet::ANIMATED_MASK;