static sticker

This commit is contained in:
overtake 2021-04-13 21:18:20 +04:00
parent 1bcce98c49
commit 6427b61a98

View File

@ -425,6 +425,8 @@ public final class TelegramMediaFile: Media, Equatable, Codable {
if case .Sticker = attribute {
if let s = self.size, s < 300 * 1024 {
return !isAnimatedSticker
} else if self.size == nil {
return !isAnimatedSticker
}
}
}