# dev.inmo.tgbotapi.types.passport

docs

# Package dev.inmo.tgbotapi.types.passport

## Types

PassportData
Link copied to clipboard
data class PassportData (val data: List < EncryptedPassportElement >, val credentials: EncryptedCredentials )
Content copied to clipboard
PassportElementError
Link copied to clipboard
sealed class PassportElementError
Content copied to clipboard
PassportElementErrorDataField
Link copied to clipboard
data class PassportElementErrorDataField ( val type: String , val fieldName: String , val elementHash: PassportElementHash , val message: String ) : PassportSingleElementError
Content copied to clipboard
PassportElementErrorFile
Link copied to clipboard
data class PassportElementErrorFile ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementErrorFiles
Link copied to clipboard
data class PassportElementErrorFiles ( val type: String , val elementsHashes: List < PassportElementHash >, val message: String ) : PassportElementFilesError
Content copied to clipboard
PassportElementErrorFrontSide
Link copied to clipboard
data class PassportElementErrorFrontSide ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementErrorReverseSide
Link copied to clipboard
data class PassportElementErrorReverseSide ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementErrorSelfie
Link copied to clipboard
data class PassportElementErrorSelfie ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementErrorSerializer
Link copied to clipboard
object PassportElementErrorSerializer : KSerializer< PassportElementError >
Content copied to clipboard
PassportElementErrorTranslationFile
Link copied to clipboard
data class PassportElementErrorTranslationFile ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementErrorTranslationFiles
Link copied to clipboard
data class PassportElementErrorTranslationFiles ( val type: String , val elementsHashes: List < PassportElementHash >, val message: String ) : PassportElementFilesError
Content copied to clipboard
PassportElementErrorUnspecified
Link copied to clipboard
data class PassportElementErrorUnspecified ( val type: String , val elementHash: PassportElementHash , val message: String ) : PassportElementFileError
Content copied to clipboard
PassportElementFileError
Link copied to clipboard
sealed class PassportElementFileError : PassportSingleElementError
Content copied to clipboard
PassportElementFilesError
Link copied to clipboard
sealed class PassportElementFilesError : PassportMultipleElementsError
Content copied to clipboard
PassportMultipleElementsError
Link copied to clipboard
sealed class PassportMultipleElementsError : PassportElementError
Content copied to clipboard
PassportSingleElementError
Link copied to clipboard
sealed class PassportSingleElementError : PassportElementError
Content copied to clipboard
UnknownPassportElementError
Link copied to clipboard
data class UnknownPassportElementError (val raw: JsonObject) : PassportElementError
Content copied to clipboard

## Functions

createDataError
Link copied to clipboard
fun EncryptedPassportElementWithData . createDataError (field: String , message: String ): PassportElementErrorDataField
Content copied to clipboard
createFileError
Link copied to clipboard
fun EncryptedPassportElementTranslatable . createFileError (message: String , unencryptedFileHash: PassportElementHash ): PassportElementErrorTranslationFile
Content copied to clipboard
fun EncryptedPassportElementWithFilesCollection . createFileError (message: String , unencryptedFileHash: PassportElementHash ): PassportElementErrorFile
Content copied to clipboard
createFilesError
Link copied to clipboard
fun EncryptedPassportElementTranslatable . createFilesError (message: String , unencryptedFileHashes: List < PassportElementHash >): PassportElementErrorTranslationFiles
Content copied to clipboard
fun EncryptedPassportElementWithFilesCollection . createFilesError (message: String , unencryptedFileHashes: List < PassportElementHash >): PassportElementErrorFiles
Content copied to clipboard
createFrontSideError
Link copied to clipboard
fun EncryptedPassportElementWithFrontSide . createFrontSideError (message: String , unencryptedFileHash: PassportElementHash ): PassportElementErrorFrontSide
Content copied to clipboard
createReverseSideError
Link copied to clipboard
fun EncryptedPassportElementWithReverseSide . createReverseSideError (message: String , unencryptedFileHash: PassportElementHash ): PassportElementErrorReverseSide
Content copied to clipboard
createSelfieError
Link copied to clipboard
fun EncryptedPassportElementWithSelfie . createSelfieError (message: String , unencryptedFileHash: PassportElementHash ): PassportElementErrorSelfie
Content copied to clipboard
createUnspecifiedError
Link copied to clipboard
fun EncryptedPassportElement . createUnspecifiedError (message: String , elementHash: PassportElementHash ): PassportElementErrorUnspecified
Content copied to clipboard

## Properties

passportFileHash
Link copied to clipboard
val ByteArray . passportFileHash : MD5
Content copied to clipboard
val File . passportFileHash : MD5
Content copied to clipboard