toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.polls
/
SimplePollOption
Simple
Poll
Option
@
Serializable
(
with
=
PollOptionSerializer::class
)
data
class
SimplePollOption
(
val
text
:
String
,
val
textSources
:
List
<
TextSource
>
=
emptyList()
,
val
votes
:
Int
=
0
)
:
PollOption
Members
Constructors
Simple
Poll
Option
Link copied to clipboard
constructor
(
text
:
String
,
textSources
:
List
<
TextSource
>
=
emptyList()
,
votes
:
Int
=
0
)
Properties
text
Link copied to clipboard
@
SerialName
(
value
=
"text"
)
open
override
val
text
:
String
text
Sources
Link copied to clipboard
@
SerialName
(
value
=
"text_entities"
)
open
override
val
textSources
:
List
<
TextSource
>
Full list of
TextSource
s
votes
Link copied to clipboard
@
SerialName
(
value
=
"voter_count"
)
open
override
val
votes
:
Int
=
0
Functions
as
Input
Link copied to clipboard
open
override
fun
asInput
(
)
:
InputPollOption