SendPhoneNumberConfirmationCode
public struct SendPhoneNumberConfirmationCode : Codable, Equatable, TDFunction
Sends phone number confirmation code. Should be called when user presses “https://t.me/confirmphone?phone=*******&hash=**********” or “tg://confirmphone?phone=****&hash=*******” link
-
Undocumented
Declaration
Swift
public typealias Result = AuthenticationCodeInfo
-
Value of the “hash” parameter from the link
Declaration
Swift
public let hash: String
-
Value of the “phone” parameter from the link
Declaration
Swift
public let phoneNumber: String
-
Settings for the authentication of the user’s phone number
Declaration
Swift
public let settings: PhoneNumberAuthenticationSettings
-
Sends phone number confirmation code. Should be called when user presses “https://t.me/confirmphone?phone=*******&hash=**********” or “tg://confirmphone?phone=****&hash=*******” link
Declaration
Swift
public init(hash: String, phoneNumber: String, settings: PhoneNumberAuthenticationSettings)
Parameters
hash
Value of the “hash” parameter from the link
phoneNumber
Value of the “phone” parameter from the link
settings
Settings for the authentication of the user’s phone number