MessageGiveawayPrizeStars class final
Telegram Stars were received by the current user from a giveaway
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageGiveawayPrizeStars
Constructors
- MessageGiveawayPrizeStars({required int starCount, required String transactionId, required int boostedChatId, required int giveawayMessageId, required bool isUnclaimed, Sticker? sticker})
-
Telegram Stars were received by the current user from a giveaway
const
-
MessageGiveawayPrizeStars.fromJson(Map<
String, dynamic> json) -
Parses a MessageGiveawayPrizeStars from TDLib JSON.
factory
Properties
- boostedChatId → int
-
Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- giveawayMessageId → int
-
Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUnclaimed → bool
-
True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starCount → int
-
Number of Telegram Stars that were received
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 credit
final
Methods
-
copyWith(
{int? starCount, String? transactionId, int? boostedChatId, int? giveawayMessageId, bool? isUnclaimed, Sticker? sticker()?}) → MessageGiveawayPrizeStars -
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.