PassportSuitableElement
public struct PassportSuitableElement : Codable, Equatable, FunctionResult
Contains information about a Telegram Passport element that was requested by a service
-
Type of the element
Declaration
Swift
public let type: PassportElementType
-
True, if a selfie is required with the identity document
Declaration
Swift
public let isSelfieRequired: Bool
-
True, if a certified English translation is required with the document
Declaration
Swift
public let isTranslationRequired: Bool
-
True, if personal details must include the user’s name in the language of their country of residence
Declaration
Swift
public let isNativeNameRequired: Bool
-
Contains information about a Telegram Passport element that was requested by a service
Declaration
Swift
public init(type: PassportElementType, isSelfieRequired: Bool, isTranslationRequired: Bool, isNativeNameRequired: Bool)
Parameters
type
Type of the element
isSelfieRequired
True, if a selfie is required with the identity document
isTranslationRequired
True, if a certified English translation is required with the document
isNativeNameRequired
True, if personal details must include the user’s name in the language of their country of residence