From 3aa4ffd0da351e146ac4d84389cfc36c22f12728 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 24 Jan 2022 19:06:31 +0300 Subject: [PATCH] Ignore video attribute for animated stickers. --- td/telegram/DocumentsManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/td/telegram/DocumentsManager.cpp b/td/telegram/DocumentsManager.cpp index 7fa639225..abff5edd0 100644 --- a/td/telegram/DocumentsManager.cpp +++ b/td/telegram/DocumentsManager.cpp @@ -125,6 +125,11 @@ Document DocumentsManager::on_get_document(RemoteDocument remote_document, Dialo if ((video->flags_ & telegram_api::documentAttributeVideo::ROUND_MESSAGE_MASK) != 0) { // video note without sound animated = nullptr; + } else if (sticker != nullptr) { + // sticker + type_attributes--; + animated = nullptr; + video = nullptr; } else { // video animation video = nullptr;