ChatBoostSourceGiveaway class
The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
- Implemented types
Constructors
- ChatBoostSourceGiveaway({User? user, bool? isUnclaimed, int giveawayMessageId = 0, int? prizeStarCount})
-
Creates a source of a chat boost.
const
-
ChatBoostSourceGiveaway.fromJson(Map<
String, dynamic> json) -
Creates a
ChatBoostSourceGiveaway
object from a JSON object.factory
Properties
- giveawayMessageId → int
-
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUnclaimed → bool?
-
Optional. True, if the giveaway was completed, but there was no user to win the prize
final
- prizeStarCount → int?
-
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ChatBoostSourceType
-
Source of the boost, always
ChatBoostSourceType.giveaway
final - user → User?
-
Optional. User that won the prize in the giveaway if any
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ChatBoostSourceGiveaway
object to a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited