diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index b9ac8d42b..dfb071af5 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -109,7 +109,7 @@ MTPVector ComposeSendingDocumentAttributes( auto attributes = QVector(1, filenameAttribute); if (dimensions.width() > 0 && dimensions.height() > 0) { const auto duration = document->getDuration(); - if (duration >= 0) { + if (duration >= 0 && !document->hasMimeType(qstr("image/gif"))) { auto flags = MTPDdocumentAttributeVideo::Flags(0); if (document->isVideoMessage()) { flags |= MTPDdocumentAttributeVideo::Flag::f_round_message;