Class PollOption

java.lang.Object
io.micronaut.chatbots.telegram.api.PollOption

public class PollOption extends Object
This object contains information about one answer option in a poll.
See Also:
  • Constructor Details

    • PollOption

      public PollOption()
  • Method Details

    • getText

      @NonNull public @NonNull String getText()
      Returns:
      Option text, 1-100 characters.
    • setText

      public void setText(@NonNull @NonNull String text)
      Parameters:
      text - Option text, 1-100 characters.
    • getVoterCount

      @NonNull public @NonNull Integer getVoterCount()
      Returns:
      Number of users that voted for this option
    • setVoterCount

      public void setVoterCount(@NonNull @NonNull Integer voterCount)
      Parameters:
      voterCount - Number of users that voted for this option
    • toString

      public String toString()
      Overrides:
      toString in class Object