SendPhoneNumberCode class final

SendPhoneNumberCode (sendPhoneNumberCode) - TDLib function

Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.

  • phoneNumber: The phone number, in international format.
  • settings: Settings for the authentication of the user's phone number; pass null to use default settings (optional).
  • type: Type of the request for which the code is sent.

AuthenticationCodeInfo is returned on completion.

Inheritance

Constructors

SendPhoneNumberCode({required String phoneNumber, PhoneNumberAuthenticationSettings? settings, required PhoneNumberCodeType type})
SendPhoneNumberCode (sendPhoneNumberCode) - TDLib function
const

Properties

currentObjectId String
TDLib object type for current class instance
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
phoneNumber String
The phone number, in international format
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings PhoneNumberAuthenticationSettings?
Settings for the authentication of the user's phone number; pass null to use default settings
final
type PhoneNumberCodeType
Type of the request for which the code is sent
final

Methods

copyWith({String? phoneNumber, PhoneNumberAuthenticationSettings? settings, PhoneNumberCodeType? type}) SendPhoneNumberCode
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type