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
typeType of the element
isSelfieRequiredTrue, if a selfie is required with the identity document
isTranslationRequiredTrue, if a certified English translation is required with the document
isNativeNameRequiredTrue, if personal details must include the user’s name in the language of their country of residence
View on GitHub
Install in Dash
PassportSuitableElement Structure Reference