This commit is contained in:
Ilya Laktyushin
2019-02-27 03:25:35 +04:00
parent 023737c1c1
commit 78c42b8f9d
24 changed files with 3186 additions and 3034 deletions

View File

@@ -15,9 +15,9 @@ func isMediaStreamable(message: Message, media: TelegramMediaFile) -> Bool {
if size < 1 * 1024 * 1024 {
return false
}
if media.isAnimated {
return false
}
// if media.isAnimated {
// return false
// }
for attribute in media.attributes {
if case let .Video(video) = attribute {
if video.flags.contains(.supportsStreaming) {
@@ -41,9 +41,9 @@ func isMediaStreamable(media: TelegramMediaFile) -> Bool {
if size < 1 * 1024 * 1024 {
return false
}
if media.isAnimated {
return false
}
// if media.isAnimated {
// return false
// }
for attribute in media.attributes {
if case let .Video(video) = attribute {
if video.flags.contains(.supportsStreaming) {