SetPassportElement
public struct SetPassportElement : Codable, Equatable, TDFunction
Adds an element to the user’s Telegram Passport. May return an error with a message “PHONE_VERIFICATION_NEEDED” or “EMAIL_VERIFICATION_NEEDED” if the chosen phone number or the chosen email address must be verified first
-
Undocumented
Declaration
Swift
public typealias Result = PassportElement
-
Input Telegram Passport element
Declaration
Swift
public let element: InputPassportElement
-
Password of the current user
Declaration
Swift
public let password: String
-
Adds an element to the user’s Telegram Passport. May return an error with a message “PHONE_VERIFICATION_NEEDED” or “EMAIL_VERIFICATION_NEEDED” if the chosen phone number or the chosen email address must be verified first
Declaration
Swift
public init(element: InputPassportElement, password: String)
Parameters
element
Input Telegram Passport element
password
Password of the current user