Class PollAnswer

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

public class PollAnswer extends Object implements TelegramUpdate
This object represents an answer of a user in a non-anonymous poll.
Since:
3 March 2025
Author:
Natanim
  • Field Details

    • pollId

      @SerializedName("poll_id") private String pollId
      Unique poll identifier
    • user

      private User user
      The user that changed the answer to the poll, if the voter isn't anonymous
    • optionIds

      @SerializedName("option_ids") private List<Integer> optionIds
      0-based identifiers of chosen answer options. May be empty if the vote was retracted.
    • voterChat

      @SerializedName("voter_chat") private Chat voterChat
      The chat that changed the answer to the poll, if the voter is anonymous
  • Constructor Details

    • PollAnswer

      public PollAnswer()
  • Method Details

    • getPollId

      public String getPollId()
    • getUser

      public User getUser()
    • getOptionIds

      public List<Integer> getOptionIds()
    • getVoterChat

      public Chat getVoterChat()
    • toString

      public String toString()
      Overrides:
      toString in class Object