MessageGiftedStars class final
Telegram Stars were gifted to a user
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageGiftedStars
Constructors
- MessageGiftedStars({required int gifterUserId, required int receiverUserId, required String currency, required int amount, required String cryptocurrency, required int cryptocurrencyAmount, required int starCount, required String transactionId, Sticker? sticker})
-
Telegram Stars were gifted to a user
const
-
MessageGiftedStars.fromJson(Map<
String, dynamic> json) -
Parses a MessageGiftedStars from TDLib JSON.
factory
Properties
- amount → int
-
The paid amount, in the smallest units of the currency
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- cryptocurrency → String
-
Cryptocurrency used to pay for the gift; may be empty if none
final
- cryptocurrencyAmount → int
-
The paid amount, in the smallest units of the cryptocurrency; 0 if none
final
- currency → String
-
Currency for the paid amount
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- gifterUserId → int
-
The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiverUserId → int
-
The identifier of a user who received Telegram Stars; 0 if the gift is incoming
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starCount → int
-
Number of Telegram Stars that were gifted
final
- sticker → Sticker?
-
A sticker to be shown in the message; may be null if unknown
final
- transactionId → String
-
Identifier of the transaction for Telegram Stars purchase; for receiver only
final
Methods
-
copyWith(
{int? gifterUserId, int? receiverUserId, String? currency, int? amount, String? cryptocurrency, int? cryptocurrencyAmount, int? starCount, String? transactionId, Sticker? sticker()?}) → MessageGiftedStars -
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.