CancelGiftOnChainPurchaseOffer class

Cancels an on-chain gift purchase offer sent by the current user; can be used only if getOption("can_use_ton_wallet"). A fine may be charged if the offer is canceled before it expires. Returns the transaction that must be sent from the TON wallet of the current user to cancel the offer. The offer is canceled only after the transaction is executed on the TON blockchain Returns GiftOnChainPurchaseOfferTransaction

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

CancelGiftOnChainPurchaseOffer({required int messageId})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
messageId → int
messageId Identifier of the message messageUpgradedGiftOnChainPurchaseOffer with the offer in the chat 777000
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? messageId}) → CancelGiftOnChainPurchaseOffer

Available on CancelGiftOnChainPurchaseOffer, provided by the CancelGiftOnChainPurchaseOfferExtensions 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