toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.giveaway
/
GiveawayPublicResults
Giveaway
Public
Results
@
Serializable
(
with
=
GiveawayPublicResults.Companion::class
)
sealed
interface
GiveawayPublicResults
:
GiveawayInfo
,
GiveawayResults
,
WithPreviewChatAndMessageId
,
ReplyInfo.External.ContentVariant
,
GiveawayInfo.OptionallyStars
,
GiveawayInfo.OptionallyPremium
,
WithPreviewChat
Inheritors
Refunded
Winners
Members
Types
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
GiveawayPublicResults
>
Refunded
Link copied to clipboard
@
Serializable
data
class
Refunded
(
val
chat
:
PreviewChat
,
val
messageId
:
MessageId
,
val
selectionDate
:
TelegramDate
)
:
GiveawayPublicResults
Winners
Link copied to clipboard
@
Serializable
data
class
Winners
(
val
chat
:
PreviewChat
,
val
messageId
:
MessageId
,
val
selectionDate
:
TelegramDate
,
val
count
:
Int
,
val
winners
:
List
<
PreviewUser
>
,
val
additionalChats
:
Int
=
0
,
val
unclaimedCount
:
Int
=
0
,
val
onlyNewMembers
:
Boolean
=
false
,
val
additionalPrizeDescription
:
String
?
=
null
,
val
premiumMonths
:
Int
?
=
null
,
val
prizeStarCount
:
Int
?
=
null
)
:
GiveawayPublicResults
Properties
additional
Chats
Link copied to clipboard
abstract
val
additionalChats
:
Int
additional
Prize
Description
Link copied to clipboard
abstract
val
additionalPrizeDescription
:
String
?
chat
Link copied to clipboard
abstract
val
chat
:
PreviewChat
count
Link copied to clipboard
abstract
val
count
:
Int
message
Id
Link copied to clipboard
abstract
val
messageId
:
MessageId
only
New
Members
Link copied to clipboard
abstract
val
onlyNewMembers
:
Boolean
premium
Months
Link copied to clipboard
abstract
val
premiumMonths
:
Int
?
prize
Star
Count
Link copied to clipboard
abstract
val
prizeStarCount
:
Int
?
refunded
Link copied to clipboard
abstract
val
refunded
:
Boolean
selection
Date
Link copied to clipboard
abstract
val
selectionDate
:
TelegramDate
unclaimed
Count
Link copied to clipboard
abstract
val
unclaimedCount
:
Int
winners
Link copied to clipboard
abstract
val
winners
:
List
<
PreviewUser
>