MessageGiftedPremium class final

Telegram Premium was gifted to the user

Inheritance

Constructors

MessageGiftedPremium({required int gifterUserId, required String currency, required int amount, required String cryptocurrency, required int cryptocurrencyAmount, required int monthCount, Sticker? sticker})
Telegram Premium was gifted to the user
const
MessageGiftedPremium.fromJson(Map<String, dynamic> json)
Parses a MessageGiftedPremium 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 that gifted Telegram Premium; 0 if the gift was anonymous
final
hashCode → int
The hash code for this object.
no setterinherited
monthCount → int
Number of months the Telegram Premium subscription will be active
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sticker → Sticker?
A sticker to be shown in the message; may be null if unknown
final

Methods

copyWith({int? gifterUserId, String? currency, int? amount, String? cryptocurrency, int? cryptocurrencyAmount, int? monthCount, Sticker? sticker()?}) → MessageGiftedPremium
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.