GetUpgradedGiftDepositInfo class final

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

Constructors

GetUpgradedGiftDepositInfo({required MessageSender ownerId, required String name, required bool hideSender})
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
const

Properties

canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hideSender → bool
Pass true to hide the sender of the gift in the message received by the new owner
final
name → String
Unique name of the upgraded gift
final
ownerId → MessageSender
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
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
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.