GetUserLink class
Returns an HTTPS link that can be used to get information about the current user Returns UserLink
- Inheritance
-
- Object
- TdFunction
- GetUserLink
- Available extensions
- Annotations
-
- @immutable
Constructors
- GetUserLink({required bool removeMessagesFee, required bool returnPermanentLink, required bool revokePreviousLinks})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- removeMessagesFee → bool
-
removeMessagesFee Pass true to get a link that allows other users to
send unpaid messages to the current user. By default, a temporary link is
returned in this case
final
- returnPermanentLink → bool
-
returnPermanentLink Pass true to get a permanent link; ignored if
remove_messages_fee is false. Can be used only if can_get_permanent_link
is true in a previously received userLink
final
- revokePreviousLinks → bool
-
revokePreviousLinks Pass true to revoke previously created links that
allow other users to send unpaid messages to the current user; ignored if
remove_messages_fee is false. If return_permanent_link is true, then the
permanent link is revoked too; otherwise, only temporary links are revoked
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? removeMessagesFee, bool? returnPermanentLink, bool? revokePreviousLinks}) → GetUserLink -
Available on GetUserLink, provided by the GetUserLinkExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String