PollAnswer

data class PollAnswer(val pollId: String, val voterChat: Chat? = null, val user: User? = null, val optionIds: List<Int> = emptyList())(source)

PollAnswer

This object represents an answer of a user in a non-anonymous poll.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(pollId: String, voterChat: Chat? = null, user: User? = null, optionIds: List<Int> = emptyList())

Properties

Link copied to clipboard
@SerialName(value = "option_ids")
val optionIds: List<Int>

0-based identifiers of chosen answer options. May be empty if the vote was retracted.

Link copied to clipboard
@SerialName(value = "poll_id")
val pollId: String

Unique poll identifier

Link copied to clipboard
val user: User? = null

Optional. The user that changed the answer to the poll, if the voter isn't anonymous

Link copied to clipboard
@SerialName(value = "voter_chat")
val voterChat: Chat? = null

Optional. The chat that changed the answer to the poll, if the voter is anonymous