GetUpgradedGiftDepositInfo class

Returns information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. Use sendTonWalletTransfer to complete transfer of the gift. The gift will be received by the new owner with a message about the gift after the transfer is confirmed in the blockchain Returns UpgradedGiftDepositInfo

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

GetUpgradedGiftDepositInfo({required MessageSender ownerId, required String name, required bool hideSender})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
hideSender → bool
hideSender Pass true to hide the sender of the gift in the message received by the new owner
final
name → String
name Unique name of the upgraded gift
final
ownerId → MessageSender
ownerId Identifier of the user or the channel chat that will receive the gift
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({MessageSender? ownerId, String? name, bool? hideSender}) → GetUpgradedGiftDepositInfo

Available on GetUpgradedGiftDepositInfo, provided by the GetUpgradedGiftDepositInfoExtensions 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