Adjust input activation

This commit is contained in:
Ali
2023-06-26 17:38:22 +03:00
parent f0809b0aae
commit 4a3292df29
5 changed files with 54 additions and 15 deletions

View File

@@ -569,6 +569,9 @@ func inputDocumentAttributesFromFileAttributes(_ fileAttributes: [TelegramMediaF
if preloadSize != nil {
flags |= (1 << 2)
}
if videoFlags.contains(.isSilent) {
flags |= (1 << 3)
}
attributes.append(.documentAttributeVideo(flags: flags, duration: duration, w: Int32(size.width), h: Int32(size.height), preloadPrefixSize: preloadSize))
case let .Audio(isVoice, duration, title, performer, waveform):