MessageUpgradedGift class final
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageUpgradedGift
Constructors
- MessageUpgradedGift({required UpgradedGift gift, MessageSender? senderId, required MessageSender receiverId, required UpgradedGiftOrigin origin, required String receivedGiftId, required FormattedText text, required bool isPrivate, required bool isSaved, required bool canBeTransferred, required bool wasTransferred, required int transferStarCount, required int dropOriginalDetailsStarCount, required int nextTransferDate, required int nextResaleDate, required int exportDate, required int craftDate})
-
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift
const
-
MessageUpgradedGift.fromJson(Map<
String, dynamic> json) -
Parses a MessageUpgradedGift from TDLib JSON.
factory
Properties
- canBeTransferred → bool
-
True, if the gift can be transferred to another owner; only for the receiver of the gift
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- craftDate → int
-
Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift
final
- dropOriginalDetailsStarCount → int
-
Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift
final
- exportDate → int
-
Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- gift → UpgradedGift
-
The gift
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPrivate → bool
-
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
final
- isSaved → bool
-
True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift
final
- nextResaleDate → int
-
Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift
final
- nextTransferDate → int
-
Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift
final
- origin → UpgradedGiftOrigin
-
Origin of the upgraded gift
final
- receivedGiftId → String
-
Unique identifier of the received gift for the current user; only for the receiver of the gift
final
- receiverId → MessageSender
-
Receiver of the gift
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → MessageSender?
-
Sender of the gift; may be null for anonymous gifts
final
- text → FormattedText
-
Message added to the gift
final
- transferStarCount → int
-
Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift
final
- wasTransferred → bool
-
True, if the gift has already been transferred to another owner; only for the receiver of the gift
final
Methods
-
copyWith(
{UpgradedGift? gift, MessageSender? senderId()?, MessageSender? receiverId, UpgradedGiftOrigin? origin, String? receivedGiftId, FormattedText? text, bool? isPrivate, bool? isSaved, bool? canBeTransferred, bool? wasTransferred, int? transferStarCount, int? dropOriginalDetailsStarCount, int? nextTransferDate, int? nextResaleDate, int? exportDate, int? craftDate}) → MessageUpgradedGift -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.