InternalLinkTypeUserPhoneNumber class final

The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field

Inheritance

Constructors

InternalLinkTypeUserPhoneNumber({required String phoneNumber, required String draftText, required bool openProfile, required String unpaidMessagesToken, dynamic extra, int? clientId})
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field
const
InternalLinkTypeUserPhoneNumber.fromJson(Map<String, dynamic> json)
Parses a InternalLinkTypeUserPhoneNumber from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
draftText → String
Draft text for message to send in the chat
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
openProfile → bool
True, if user's profile information screen must be opened; otherwise, the chat itself must be opened
final
phoneNumber → String
Phone number of the user
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unpaidMessagesToken → String
Token, which allows the current user to send unpaid messages to the user; may be empty if none. If the token isn't empty and the user is found, then call applyUnpaidMessagesToken with the user and the token
final

Methods

copyWith({String? phoneNumber, String? draftText, bool? openProfile, String? unpaidMessagesToken, dynamic extra, int? clientId}) → InternalLinkTypeUserPhoneNumber
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.