toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.polls
/
PollAnswer
Poll
Answer
@
Serializable
(
with
=
PollAnswer.Companion::class
)
sealed
interface
PollAnswer
:
FromUser
Inheritors
Public
Anonymous
Members
Types
Anonymous
Link copied to clipboard
@
Serializable
data
class
Anonymous
(
val
pollId
:
PollId
,
val
voterChat
:
ChannelChat
,
val
chosen
:
List
<
Int
>
)
:
PollAnswer
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
PollAnswer
>
Public
Link copied to clipboard
@
Serializable
data
class
Public
(
val
pollId
:
PollId
,
val
user
:
User
,
val
chosen
:
List
<
Int
>
)
:
PollAnswer
Properties
chosen
Link copied to clipboard
abstract
val
chosen
:
List
<
Int
>
from
Link copied to clipboard
@
Transient
open
override
val
from
:
User
The source
User
of this type
poll
Id
Link copied to clipboard
abstract
val
pollId
:
PollId
user
Link copied to clipboard
abstract
override
val
user
:
User