ChangePhoneNumber
public struct ChangePhoneNumber : Codable, Equatable, TDFunction
Changes the phone number of the user and sends an authentication code to the user’s new phone number. On success, returns information about the sent code
-
Undocumented
Declaration
Swift
public typealias Result = AuthenticationCodeInfo
-
The new phone number of the user in international format
Declaration
Swift
public let phoneNumber: String
-
Settings for the authentication of the user’s phone number
Declaration
Swift
public let settings: PhoneNumberAuthenticationSettings
-
Changes the phone number of the user and sends an authentication code to the user’s new phone number. On success, returns information about the sent code
Declaration
Swift
public init(phoneNumber: String, settings: PhoneNumberAuthenticationSettings)
Parameters
phoneNumber
The new phone number of the user in international format
settings
Settings for the authentication of the user’s phone number