ktgbotapi
Toggle table of contents
common
jvm
Platform filter
common
jvm
Switch theme
Search in API
ktgbotapi
tgbotapi.core
/
dev.inmo.tgbotapi.types.passport.credentials
/
FileCredentials
File
Credentials
@
Serializable
data
class
FileCredentials
(
val
hash
:
SourceBytes
,
val
secret
:
SourceBytes
)
:
EndDataCredentials
Members
Members & Extensions
Constructors
File
Credentials
Link copied to clipboard
constructor
(
hash
:
SourceBytes
,
secret
:
SourceBytes
)
Properties
hash
Link copied to clipboard
@
SerialName
(
value
=
"file_hash"
)
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
hash
:
SourceBytes
secret
Link copied to clipboard
@
SerialName
(
value
=
"secret"
)
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
secret
:
SourceBytes
Functions
create
Decryptor
Link copied to clipboard
jvm
fun
EndDataCredentials
.
createDecryptor
(
)
:
Decryptor
decrypt
Data
Link copied to clipboard
jvm
fun
EndDataCredentials
.
decryptData
(
bytes
:
EncryptedData
)
:
SourceBytes
decrypt
File
Link copied to clipboard
jvm
fun
FileCredentials
.
decryptFile
(
fileBytes
:
ByteArray
)
:
SourceBytes
suspend
fun
FileCredentials
.
decryptFile
(
bot
:
TelegramBot
,
passportFile
:
PassportFile
)
:
SourceBytes