final case class Poll(id: String, question: String, options: List[PollOption], totalVoterCount: Int, isClosed: Boolean, isAnonymous: Boolean, type: String, allowsMultipleAnswers: Boolean, correctOptionId: Option[Int]) extends Product with Serializable
Represents a poll in one of the Telegram chats.
- id
Unique poll identifier
- question
Poll question, 1-255 characters
- options
List of poll options
- totalVoterCount
Total number of users that voted in the poll
- isClosed
True, if the poll is closed
- isAnonymous
True, if the poll is anonymous
- allowsMultipleAnswers
True, if the poll allows multiple answers
- correctOptionId
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.
- Alphabetic
- By Inheritance
- Poll
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Poll(id: String, question: String, options: List[PollOption], totalVoterCount: Int, isClosed: Boolean, isAnonymous: Boolean, type: String, allowsMultipleAnswers: Boolean, correctOptionId: Option[Int])
- id
Unique poll identifier
- question
Poll question, 1-255 characters
- options
List of poll options
- totalVoterCount
Total number of users that voted in the poll
- isClosed
True, if the poll is closed
- isAnonymous
True, if the poll is anonymous
- allowsMultipleAnswers
True, if the poll allows multiple answers
- correctOptionId
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.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowsMultipleAnswers: Boolean
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val correctOptionId: Option[Int]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
- val isAnonymous: Boolean
- val isClosed: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val options: List[PollOption]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val question: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val totalVoterCount: Int
- val type: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()