FileCredentials

@Serializable
data class FileCredentials(val hash: SourceBytes, val secret: SourceBytes) : EndDataCredentials

Constructors

Link copied to clipboard
constructor(hash: SourceBytes, secret: SourceBytes)

Properties

Link copied to clipboard
@SerialName(value = "file_hash")
@Serializable(with = Base64BytesToFromStringSerializer::class)
open override val hash: SourceBytes
Link copied to clipboard
@SerialName(value = "secret")
@Serializable(with = Base64BytesToFromStringSerializer::class)
open override val secret: SourceBytes

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun FileCredentials.decryptFile(fileBytes: ByteArray): SourceBytes
suspend fun FileCredentials.decryptFile(bot: TelegramBot, passportFile: PassportFile): SourceBytes