mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 19:09:56 +00:00
8 lines
347 B
Swift
8 lines
347 B
Swift
import Foundation
|
|
|
|
extension SecretChatFileReference {
|
|
func resource(key: SecretFileEncryptionKey, decryptedSize: Int32) -> SecretFileMediaResource {
|
|
return SecretFileMediaResource(fileId: self.id, accessHash: self.accessHash, size: Int(self.size), decryptedSize: decryptedSize, datacenterId: Int(self.datacenterId), key: key)
|
|
}
|
|
}
|