Poll

final case class Poll(id: String, question: String, totalVoterCount: Int, isClosed: Boolean, isAnonymous: Boolean, `type`: String, allowsMultipleAnswers: Boolean, options: List[PollOption], correctOptionId: Option[Int], explanation: Option[String], explanationEntities: List[MessageEntity], openPeriod: Option[Int], closeDate: Option[Int])

This object contains information about a poll.

Value parameters:
allowsMultipleAnswers

True, if the poll allows multiple answers

closeDate

Optional. Point in time (Unix timestamp) when the poll will be automatically closed

correctOptionId

Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.

explanation

Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters

explanationEntities

Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation

id

Unique poll identifier

isAnonymous

True, if the poll is anonymous

isClosed

True, if the poll is closed

openPeriod

Optional. Amount of time in seconds the poll will be active after creation

options

List of poll options

question

Poll question, 1-300 characters

totalVoterCount

Total number of users that voted in the poll

type

Poll type, currently can be “regular” or “quiz”

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product