Data about the represents a message about the completion of a giveaway with public winners
Optional
addThe number of other chats the user had to join in order to be eligible for the giveaway
The chat that created the giveaway
Total number of winners in the giveaway
Optional
descriptionDescription of additional giveaway prize
Identifier of the messsage with the giveaway in the chat
Optional
onlyTrue, if only users who had joined the chats after the giveaway started were eligible to win
Optional
refundedTrue, if the giveaway was canceled because the payment for it was refunded
Point in time (Unix timestamp) when winners of the giveaway were selected
Optional
starThe number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
Optional
subscriptionThe number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
Optional
unclaimedNumber of undistributed prizes
List of up to 100 winners of the giveaway
The client that instantiated this
Point in time when winners of the giveaway were selected
Return the timestamp winners of the giveaway were selected, in milliseconds
Protected
_cloneProtected
_updateChecks if this giveaway winners object is equal to another giveaway winners object.
The other object to compare with.
True if both objects are instances of GiveawayWinners and are equal based on key properties, otherwise false.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this