diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 328d46ead..bf764ce22 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -5594,10 +5594,12 @@ Result> StickersManager::prepare_i return std::make_tuple(FileId(), false, false, StickerFormat::Unknown); } - if (file_type == FileType::Sticker) { + if (format == StickerFormat::Tgs) { int32 width = for_thumbnail ? 100 : 512; create_sticker(file_id, string(), PhotoSize(), get_dimensions(width, width, "prepare_input_file"), nullptr, format, nullptr); + } else if (format == StickerFormat::Webm) { + td_->documents_manager_->create_document(file_id, string(), PhotoSize(), "sticker.webm", "video/webm", false); } else { td_->documents_manager_->create_document(file_id, string(), PhotoSize(), "sticker.png", "image/png", false); }