PassportElementError

data class PassportElementError(source: PassportElementErrorSource, type: String, message: String, fieldName: String?, dataHash: String?, fileHash: String?, elementHash: String?, fileHashes: List<String>)

This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.

Constructors

PassportElementError
Link copied to clipboard
common
fun PassportElementError(source: PassportElementErrorSource, type: String, message: String, fieldName: String? = null, dataHash: String? = null, fileHash: String? = null, elementHash: String? = null, fileHashes: List<String> = emptyList())

Functions

component1
Link copied to clipboard
common
operator fun component1(): PassportElementErrorSource
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): String?
component8
Link copied to clipboard
common
operator fun component8(): List<String>
copy
Link copied to clipboard
common
fun copy(source: PassportElementErrorSource, type: String, message: String, fieldName: String? = null, dataHash: String? = null, fileHash: String? = null, elementHash: String? = null, fileHashes: List<String> = emptyList()): PassportElementError
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

dataHash
Link copied to clipboard
common
val dataHash: String? = null
elementHash
Link copied to clipboard
common
val elementHash: String? = null
fieldName
Link copied to clipboard
common
val fieldName: String? = null
fileHash
Link copied to clipboard
common
val fileHash: String? = null
fileHashes
Link copied to clipboard
common
val fileHashes: List<String>
message
Link copied to clipboard
common
val message: String
source
Link copied to clipboard
common
val source: PassportElementErrorSource
type
Link copied to clipboard
common
val type: String