Class PollOption

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

public class PollOption extends Object implements TelegramUpdate
This class contains information about one answer option in a poll.
Since:
3 March 2025
Author:
Natanim
  • Field Details

    • text

      private String text
      Option text, 1-100 characters
    • textEntities

      @SerializedName("text_entities") private List<MessageEntity> textEntities
      Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
    • voterCount

      @SerializedName("voter_count") private Integer voterCount
      Number of users that voted for this option
  • Constructor Details

    • PollOption

      public PollOption()
  • Method Details