java.lang.Object
io.github.natanimn.telebof.types.updates.Poll
All Implemented Interfaces:
TelegramUpdate

public class Poll extends Object implements TelegramUpdate
This class contains information about a poll.
Since:
3 March 2025
  • Constructor Details

    • Poll

      public Poll()
  • Method Details

    • getId

      public String getId()
    • getQuestion

      public String getQuestion()
    • getType

      public PollType getType()
    • getExplanation

      public String getExplanation()
    • getOptions

      public List<PollOption> getOptions()
    • getTotalVoterCount

      public Integer getTotalVoterCount()
    • getCorrectOptionId

      public Integer getCorrectOptionId()
    • getOpenPeriod

      public Integer getOpenPeriod()
    • getCloseDate

      public Integer getCloseDate()
    • getIsClosed

      public Boolean getIsClosed()
    • getIsAnonymous

      public Boolean getIsAnonymous()
    • getAllowsMultipleAnswers

      public Boolean getAllowsMultipleAnswers()
    • getExplanationEntities

      public List<MessageEntity> getExplanationEntities()
    • getQuestionEntities

      public List<MessageEntity> getQuestionEntities()
    • toString

      public String toString()
      Overrides:
      toString in class Object