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
fun EndDataCredentials.createDecryptor(): <Error class: unknown class>
Link copied to clipboard
fun EndDataCredentials.decryptData(bytes: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
fun FileCredentials.decryptFile(fileBytes: ByteArray): <Error class: unknown class>
suspend fun FileCredentials.decryptFile(bot: TelegramBot, passportFile: PassportFile): <Error class: unknown class>