Class Poll
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.polls.Poll
-
- All Implemented Interfaces:
Serializable,BotApiObject
public class Poll extends Object implements BotApiObject
- Version:
- 4.2 This object contains information about a poll.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Poll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetClosed()StringgetId()List<PollOption>getOptions()StringgetQuestion()voidsetClosed(Boolean closed)voidsetId(String id)voidsetOptions(List<PollOption> options)voidsetQuestion(String question)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getQuestion
public String getQuestion()
-
setQuestion
public void setQuestion(String question)
-
getOptions
public List<PollOption> getOptions()
-
setOptions
public void setOptions(List<PollOption> options)
-
getClosed
public Boolean getClosed()
-
setClosed
public void setClosed(Boolean closed)
-
-