ChatBoostSourceGiveaway

@SerialName(value = "giveaway")
data class ChatBoostSourceGiveaway(val giveawayMessageId: Int, val user: User? = null, val isUnclaimed: Boolean? = null) : ChatBoostSource(source)

ChatBoostSourceGiveaway

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.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(giveawayMessageId: Int, user: User? = null, isUnclaimed: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "giveaway_message_id")
val 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.

Link copied to clipboard
@SerialName(value = "is_unclaimed")
val isUnclaimed: Boolean? = null

Optional. True, if the giveaway was completed, but there was no user to win the prize

Link copied to clipboard
val user: User? = null

Optional. User that won the prize in the giveaway if any