SendPhoneNumberVerificationCode
public struct SendPhoneNumberVerificationCode : Codable, Equatable, TDFunction
Sends a code to verify a phone number to be added to a user’s Telegram Passport
-
Undocumented
Declaration
Swift
public typealias Result = AuthenticationCodeInfo
-
The 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
-
Sends a code to verify a phone number to be added to a user’s Telegram Passport
Declaration
Swift
public init(phoneNumber: String, settings: PhoneNumberAuthenticationSettings)
Parameters
phoneNumber
The phone number of the user, in international format
settings
Settings for the authentication of the user’s phone number