PollAnswer

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

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

Api reference

Constructors

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

Properties

Link copied to clipboard

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

Link copied to clipboard

Unique poll identifier

Link copied to clipboard
val user: User

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

Link copied to clipboard
val voterChat: Chat? = null

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