PassportElementError
public struct PassportElementError : Codable, Equatable, FunctionResult
Contains the description of an error in a Telegram Passport element
-
Type of the Telegram Passport element which has the error
Declaration
Swift
public let type: PassportElementType
-
Error message
Declaration
Swift
public let message: String
-
Error source
Declaration
Swift
public let source: PassportElementErrorSource
-
Contains the description of an error in a Telegram Passport element
Declaration
Swift
public init(type: PassportElementType, message: String, source: PassportElementErrorSource)
Parameters
type
Type of the Telegram Passport element which has the error
message
Error message
source
Error source