Ignore video attribute for animated stickers.

This commit is contained in:
levlam 2022-01-24 19:06:31 +03:00
parent 2e7205d391
commit 3aa4ffd0da

View File

@ -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;