Gift class
Represents a gift that can be sent by the bot.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier of the gift.
final
- remainingCount → int?
-
Optional. The number of remaining gifts of this type that can be sent; for limited gifts only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starCount → int
-
The number of Telegram Stars that must be paid to send the sticker.
final
- sticker → Sticker
-
The sticker that represents the gift.
final
- totalCount → int?
-
Optional. The total number of gifts of this type that can be sent; for limited gifts only.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited